iEntry 10th Anniversary RSS Newsletter Advertising
Join the WebProWorld Forum!
Text: Decrease Font Size Increase Font Size | Print Print Article | Share: Delicious Digg StumbleUpon Post to Twitter Post to Facebook
CommentFriday, May 14, 2004

Create a Bookmarking/favorites Script

With so many sites on the web, it's challenging to gain the attention of visitors for more than 60 seconds - and even more challenging to get them to return.

Encouraging people to "bookmark" or add your site to their favorites is one of the many simple strategies you can use to encourage repeat traffic.

It's not enough to rely on the fact that browsers have favorites/bookmarking functions only a few inches away on the toolbar - visitors need to be encouraged to bookmark - and for it to be as easy as possible for them to do so.

With the script below you can create custom text and set the page you want bookmarked - it could be a different page to the one that your visitor is currently viewing.

<script LANGUAGE="JavaScript">

// This script can be used within tables.
// Suitable for most 4+ Browsers. Copy and paste into a text editor first,
// change the YOURWEBSITE details to suit, then paste into appropriate area
// between <body> and </body> tags in your page source code.
// Script supplied courtesy of ThinkHost - http://www.thinkhost.com

if ((navigator.appName == "Microsoft Internet Explorer")
&& (parseInt(navigator.appVersion) >= 4))
{
var url="HTTP://WWW.YOURWEBSITE.COM/";
var title="YOURWEBSITE DESCRIPTION (this will display on favorites listing)";
document.write('<A HREF="javascript:window.external.AddFavorite(url,title);"');
document.write('<small>Bookmark YOURWEBSITE!</small><br></a>');}
else {
var msg = "<b>Bookmark YOURWEBSITE!</b>";
if(navigator.appName == "Netscape") msg += " <b> - press(Ctrl-D) on your keyboard.</b>";
document.write(msg);
}
</script>

While the script functions best in Internet Explorer, users of older versions of Netscape will be shown a prompt to bookmark the page by using the Ctrl +D key combination.

Michael Bloch is the Business Operations Manager of ThinkHost, a USA based company that has been providing hosting solutions to the world since 1999.

News Tags: bookmarking
About the author:
Michael Bloch is the Business Operations Manager of ThinkHost, a USA based company that has been providing hosting solutions to the world since 1999.

Publish A Comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 7 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
SEARCH
Popular WPN Business Resources












Subscribe to WebProNews


Send me relevant info