I would like to give viewers an easy option to automatically bookmark my site during their visit. What is the code and how do I do it?
Thanks
I would like to give viewers an easy option to automatically bookmark my site during their visit. What is the code and how do I do it?
Thanks
awesome question!
Greg Haraksin, Prudential CA Realty.
Serving buyers and sellers of Yorba Linda Homes, Fullerton Homes, Brea Homes, and North Orange County, CA .
Add this between your <head> </head> tags:
<script language="JavaScript" >
// script by http://www.yourwebsite.com
var urlAddress = "http://www.yourwebsite.com";
var pageName = "yourwebsite.com - Your page name here";
function addToFavorites() {
if (window.external) { window.external.AddFavorite(urlAddress,pageName)}
else { alert("Sorry! Your browser doesn't support this feature.");}
}
</script>
Place this in your <body> somewhere:
<a href="javascript:addToFavorites()">Click To Bookmark This Page !</a>
Change yourwebsite to whatever url you want to bookmark.
Panama City Homes for Sale, Panama City Real Estate and Panama City Beach Condos
The Panama City Real Estate Team at Keller Williams Success Realty - Your source for Panama City real estate sales, services and information. For additional information on Panama City and Panama City Beach Real Estate, contact me or visit our website.
or you can do something like this anywhere on the page:
<a href="javascript:window.external.AddFavorite('http ://www.yoursite.com', 'Search my city Real Estate');">
<img src="http://picture/house.gif"> Add this Page to your
Favorites</a>
Russell Volk, REALTOR®/Partner
Scope Real Estate
Feasterville, PA
Bucks County Real Estate | Bucks County Real Estate Blog | Doylestown, PA Real Estate.
Nice one, definately an easier method and doesn't require access to the <head> tag. But the above doesn't work on my site, I think it's because of the semi colon. This does however work (I've removed the img):
<a href="javascript:window.external.AddFavorite('http ://www.mysite.com','Favorites text')">Bookmark Us</a>
Panama City Homes for Sale, Panama City Real Estate and Panama City Beach Condos
The Panama City Real Estate Team at Keller Williams Success Realty - Your source for Panama City real estate sales, services and information. For additional information on Panama City and Panama City Beach Real Estate, contact me or visit our website.
It should work with the image. That's how I have it setup. Maybe the img tag just needs to be closed.
Russell Volk, REALTOR®/Partner
Scope Real Estate
Feasterville, PA
Bucks County Real Estate | Bucks County Real Estate Blog | Doylestown, PA Real Estate.
I cant get the picture to work...Any suggestions???
Yes. Your site is built with PHP.
Use jessiesc's suggestion and put the function in the header. Backslash any full quotes (\").
Backslash any full quotes wherever you put it into the page also like so:
<a href=\"javascript:window.external.AddFavorite('htt p ://www.mysite.com','Favorites text')\">Bookmark Us</a>
Then it'll work fine. Try it on a test page if you think you'll have problems until it functions properly, then transplant it.
LanGard MicroDevelopers Oregon Real Estate Agent and Company Directory
Still not working...
Panama City Homes for Sale, Panama City Real Estate and Panama City Beach Condos
The Panama City Real Estate Team at Keller Williams Success Realty - Your source for Panama City real estate sales, services and information. For additional information on Panama City and Panama City Beach Real Estate, contact me or visit our website.
© Copyright Real Estate Webmasters 2004-2010, All Rights Reserved. Terms of Service