View Single Post
Old 05-04-2005, 12:53 AM  
bangman
Confirmed User
 
Join Date: Sep 2004
Location: PA, USA
Posts: 5,283
AddBookmark javascript that works with both Moz/IE

Use this script for an addbookmark that works with both IE and Firefox.
See it in action @ http://www.teenieupdate.com

Between <head> tags:
Code:
<script>
function addBookmark(title,url) {
		//alert('adding ' + 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>
At Location:
Code:
javascript:void(addBookmark('Site title here', window.location.href));
Hope some of you find this useful
__________________
- David Hall
ICQ: 312744199
bangman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote