-
Cross-browser Add To Favourites/"Bookmark This Site"
Morning all,
I've been digging around for a while now, and I can't find the script I need.
I want to allow users to click a link and add a url I which specify to their Favourites or Bookmarks - But it has to be one which works in any browser.
I can find ones which work in IE - No problem. Opera/FireFox/Netscape AND IE? Not a chance laddie. . .
Does anyone have any idea where I can find a script which does this?
Thanks in advance,
Highlander
-
Never mind, found one. Works in I.E. NetScrape and Firefox. Opera users will just have to download a decent browser. . .
(You'd never guess that this is becoming a sore point )
<script language=JavaScript1.2>
function addBookmark(title,url) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
</SCRIPT>
Call it using:
<a href="javascript:addBookmark('My Page Title','http://www.whatever')">Add To Favourites</a>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|