Code Simplified – Viral Sarvaiya

Code Simplified – Viral Sarvaiya, Web Developer Friends, dot net Developer, Sql Server Developer

Add Page as a bookmark

Posted by Viral Sarvaiya on December 28, 2009

just copy and paste the below code for bookmark your page.

function bookmark(url,title){
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
} else if (navigator.appName == "Netscape") {
} else {
alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");

<input type="button" value="Bookmark us!"
onclick="bookmark('','JavaScript For Bookmark')">


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: