Jump to content

Recommended Posts

Posted

My customer would like to add a "Bookmark this Page" to his index page I see there is software available on the net for that, but how "safe" are those downloads and can anyone here give me some code to do the same?

 

Much thanks!

 

Alfie

Posted

You can do "bookmark this" functionality using just Javascript:

 

<a href="javascript:if(document.all)window.external.AddFavorite(location.href,document.title);else if(window.sidebar)window.sidebar.addPanel(document.title,location.href,'');">Bookmark this page</a>

Otherwise, there are always services like AddThis that I have used in the past, in case they want social media services as well.

Posted

You can do "bookmark this" functionality using just Javascript:

 

<a href="javascript:window.external.AddFavorite('http://www.Your-Website.com/','Name Of The Bookmark')">Bookmark This Page</a>

Otherwise, there are always services like AddThis that I have used in the past, in case they want social media services as well.

 

HMM! I copy/pasted your code into my index page using chimneyrockinn.net for the "Your-website" and Chimney Rock Inn, NC for the "Name Of The Bookmark". When I tried to click on the link, nothing happened. But that is not too surprising as I was viewing the site off of my home computer.

 

Should this work if I post it on the net? In other words did I use your code correctly?

 

(I am more than a little ignorant about javascript!)

 

Thanks again!

 

Alfie

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
×
×
  • Create New...