Help - Search - Members - Calendar
Full Version: Bookmark This Site Button
MonsterSmallBusiness Forums > MonsterCommerce > How do I?
deerefun
I would like to add a bookmark this site link on my site but have no clue how it is done? Is there some code available to do this?
Brad
Hi Steve -

I found a handy little tool that lets you plug in a few variables (the URL to bookmark, the name of the site, set the text/image the visitor will click on, etc) and it generates the code for you... you'd just need to copy and paste that bit of code to the area of the site you'd like the link to display in. You can find the tool here.

Hope this helps!

Brad
crashingflwrgrl
1.) Add this code segment to your html code.

<script LANGUAGE="JavaScript">
function bookmark(url, description)
{
netscape="Netscape User's hit CTRL+D to add a bookmark to this site."
if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
}
//-->
</SCRIPT>

2.) Add the following line of code to your html wherever you would like the bookmark link to appear. Remember to change the bold typeface to your site

<a href="javascript:bookmark(' The Address You'd Like Bookmarked ',' The Title of Your Site ');">Bookmark this Site</A>

Note: I did not create this code and I haven't tested it. Hope it works. smile.gif
bookmark
This is what I have:

CODE
<b><I>Click <A href="javascript:window.external.AddFavorite(window.location,%20document.title);">here</A>&nbsp;to add this page to your favorites!</I></b></p>    


I got it from someone here on the forums.
deerefun
Thanks all. I have meaning to get around to adding a bookmark button for a long time, just been to busy. Now it is time to tweak.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.