The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Bookmarking Website (Javascript)

2 posters

Go down

Bookmarking Website (Javascript) Empty Bookmarking Website (Javascript)

Post by Bully@Wiiplaza 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
avatar
Bully@Wiiplaza
Forumember

Male Posts : 127
Reputation : 4
Language : English

http://www.bullywiihacks.forumotion.com/

Back to top Go down

Bookmarking Website (Javascript) Empty Re: Bookmarking Website (Javascript)

Post by Ultron's Vision 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
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

Back to top


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