Bookmarking Website (Javascript)

Go down

Bookmarking Website (Javascript)

Post by Bully@Wiiplaza on June 18th 2013, 9:10 pm

Hello guys,

I need a (Java)script to bookmark my website which supports as many browsers as possible (Firefox, IE etc). It should work within a widget and there should be clickable picture which brings up the dialog to bookmark the page. It should hide when the site is already bookmarked (probably not possible but would be useful).

The following only works on Firefox, but not e.g. IE. Chrome isn´t possible I believe. :/

<a href="" title="My Site" target="_top"><center><img src="" width="120" height="35" border="0" alt=""></a></center>

Thanks a lot! Very Happy


Male Posts : 127
Reputation : 4
Language : English

Back to top Go down

Re: Bookmarking Website (Javascript)

Post by Ultron's Vision on June 18th 2013, 9:32 pm

Bookmarking is an action only browsers can do.

You cannot access the browser's functionalities that are in written in another language than JavaScript, which the browsers are (.bat, .c, .h, what not). There is no way to cause bookmarking via JavaScript.

Edit: Actually, after doing some research, I found this topic on Stack overflow:

And another edit. I found some interesting reference on MDN (Mozilla Developer Network) for a way on how to perform this in Firefox/any Mozilla based Browser here:
Ultron's Vision

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum