Bookmarking Website (Javascript)
2 posters
Page 1 of 1
Bookmarking Website (Javascript)
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="http://www.my site.com/" title="My Site" target="_top"><center><img src="http://www.ayersandgraces.com/images/bookmark-site.gif" width="120" height="35" border="0" alt=""></a></center>
Thanks a lot!
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="http://www.my site.com/" title="My Site" target="_top"><center><img src="http://www.ayersandgraces.com/images/bookmark-site.gif" width="120" height="35" border="0" alt=""></a></center>
Thanks a lot!
Re: Bookmarking Website (Javascript)
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: http://stackoverflow.com/questions/3024745/cross-browser-bookmark-add-to-favorites-javascript
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: https://developer.mozilla.org/en-US/docs/Code_snippets/Bookmarks
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: http://stackoverflow.com/questions/3024745/cross-browser-bookmark-add-to-favorites-javascript
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: https://developer.mozilla.org/en-US/docs/Code_snippets/Bookmarks
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum