I use this script to allow people to add a site to their bookmarks by clicking a link: 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; } } Code (markup): Here is an example of how I call it: <a href="javascript:addBookmark('Hypersyllogistic: Partisanship Rehab', 'http://www.hypersyllogistic.com')" title="Add Hypersyllogistic to your favorites">Bookmark Hypersyllogistic</a> Code (markup): My problem is, even though this script was purported to work with Internet Explorer as well as Firefox, it only works with the latter and not the former. In Internet Explorer, clicking on a link to add a bookmark makes the status bar say, "Errors on page." (The peculiar thing is, I remember this script working in IE for me before. ) How can I make the script work in both IE and Firefox?
Hmm... I tried your script on my computer and it worked fine with both IE and Firefox. Here's the page I tested with: <html> <head> <script type="text/javascript"> <!-- 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> </head> <body> <a href="javascript:addBookmark('Hypersyllogistic: Partisanship Rehab', 'http://www.hypersyllogistic.com')" title="Add Hypersyllogistic to your favorites">Bookmark Hypersyllogistic</a> </body> </html> Code (markup): Does this work on your computer?
That's really odd... The only thing that I can think of is that there is a proxy, between your computer and the server hosting the files, that strips or modifies the javascript somehow.
I'm using this: var url = this.location; var title = document.title; function makeLink(){ if(document.all) window.external.AddFavorite(url,title) } Code (markup): Then call the script with this code in href: javascript:makeLink() Code (markup): Works really well.
I took Neoto script and uploaded it. I does not work on local but it work and i made a test page I am looking for a Short Cut to your desktop and Make this your start page script if some one have.