Jump to content
xisto Community
Sign in to follow this  

Bookmark This Page

Recommended Posts

I just discovered a pretty cool script for alowing your visitors to bokmark your site. Here is the javascript code:

<script language="JavaScript"><!--// ==============================================// Copyright 2003 by jsCode.com// Source: jsCode.com// Author: etLux// Free for all; but please leave in the header.// ==============================================// message to show in non-IE browsersvar txt = "Bookmark Us!"// do not edit below this line// ===========================var url = this.location;var who = document.title;var ver = navigator.appNamevar num = parseInt(navigator.appVersion)if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {   document.write('<A HREF="javascript:window.external.AddFavorite(url,who);" ');   document.write('onMouseOver=" window.status=')   document.write("txt; return true ")   document.write('"onMouseOut=" window.status=')   document.write("' '; return true ")   document.write('">'+ txt + '</a>')}else{   txt += "  (Ctrl+D)"   document.write(txt)} //--></script>

Script reproduced from http://www.jscode.com/js_auto_bookmark.shtml.

I think this works only for IE. Anyone knows of one that works for Mozilla and Netscape too?

Share this post

Link to post
Share on other sites

Here is alot lighter script to do the job. It is a cross browser script as well.^_^



<script language="JavaScript1.2">

var bookmarkurl="URL Here";

var bookmarktitle="Title Here";

function addbookmark(){

if (document.all)





<a href="java script: addbookmark()">Bookmark Us</a>

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.