I am trying to set up simple bookmarking button for my website and I keep getting this error message ('window.external' is null or not an object) I have tried everything. Here is the issue, I am trying to set it up in a shared border so I dont have to manually enter the code on each page. Sounds easy enough. Also prior to the bright insight I got over seven hours ago to make changes to the site, I had a bookmarking button on my homepage only but I took it off when i started fiddling around today and I don't remember how I got it to work, cause I did it months ago. Please if you have any idea what is going on or how I can fix it please help me. Thanks for your mercy.
I'm using a function like this: function f_addBookmark( ) { var bookmarkurl; var bookmarktitle; bookmarkurl = "http://www.YourSite.com"; bookmarktitle="Your Site Title"; if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel( bookmarktitle, bookmarkurl, "" ); } else if( window.external ) { // IE Favorite window.external.AddFavorite( bookmarkurl, bookmarktitle ); } } Code (markup):
Thanks Ajsa52, the problem I am having is with the window.external part of the code. I am using the code from dynamic drive and it keeps coming up with an error code. Thanks
The code from DD works fine for me. There maybe some other problem with the script you are using. Try to provide a demo or provide the code you use.