The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Bookmarking Website (Javascript)

View previous topic View next topic 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="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! Very Happy

Bully@Wiiplaza
Forumember

Male Posts : 127
Reputation : 4
Language : English

http://www.bullywiihacks.com/

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: 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

Ultron's Vision
Forumember

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

http://duelacademy.net

Back to top Go down

View previous topic View next topic Back to top


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