daddyalfie Posted April 29, 2011 Report Posted April 29, 2011 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
falkencreative Posted April 29, 2011 Report Posted April 29, 2011 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.
daddyalfie Posted May 1, 2011 Author Report Posted May 1, 2011 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
falkencreative Posted May 1, 2011 Report Posted May 1, 2011 Err, my mistake (my fault for copying/pasting something that I hadn't checked myself.) I've updated the code above to something that I know works. Try that instead. (Code from http://www.hostingfanatic.com/webdev/add-to-bookmarks-javascript/)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now