smilgy
Jun 17th 2007, 9:41 am
Please, i need this help.
I want to make a button for bookmarking my site to Browser (To IE or FF).
I see it in many site which write with JavaScript.
nico_swd
Jun 18th 2007, 1:59 am
How about Google?
http://www.google.com/search?q=javascript+bookmark+ie+firefox
krt
Jun 18th 2007, 2:41 am
Did that actually work for you? I remember first doing that and gave up. Ended up searching for how to bookmark for each browser separately and compiled one myself:
function bookmark(url, title) {
if (window.sidebar)
window.sidebar.addPanel(title, url, "");
else if (window.opera && window.print) {
var ele = document.createElement('a');
ele.setAttribute('href', url);
ele.setAttribute('title', title);
ele.setAttribute('rel', 'sidebar');
ele.click();
} else if (window.external)
window.external.AddFavorite(url, title);
else
alert('Use Ctrl-D, Ctrl-T or Ctrl-B depending on your browser to bookmark this page');
}
Anyway, I did try googling with a similar query and found:
http://www.dynamicdrive.com/dynamicindex9/addbook.htm
Shame that wasn't there when I needed it, and anyway, mine's better :p
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.