/    Sign up×
Community /Pin to ProfileBookmark

How to create a bookmark link?

I am a very small time web builder and know just enough html to get me through what I do for our business web site. I would like to add a link onto our home page that will let visitors bookmark (add to favorites) our site so that they can easily come back. I’d like it basically to *say* “Bookmark our site – Click here!” with a link embedded. I can embed a link w/out a problem, but I’m not sure how to write it so that it will pull up their “add to favorites” box. Can someone show me this html wording or point me in the right direction?

Thanks!

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@felgallJul 07.2005 — Here is the script I wrote which handles most browsers.

// Bookmark this page
// copyright 12th February, 2005
// Stephen Chapman, http://javascript.about.com
// You have permission to copy and use this javascript provided that
// the copyright notice is included with the script

var chr = 'CTRL-D';
var agt=navigator.userAgent.toLowerCase();
if(agt.indexOf("opera") != -1) chr = 'CTRL-T';
if (window.external)
document.write('<a href="javascript:window.external.AddFavorite(self.location,document.title)">Add to Favorites</a>');
else
document.write('Press '+chr+' to bookmark this page.');
Copy linkTweet thisAlerts:
@consign1authorJul 07.2005 — Thanks Stephen, but this did not work. I am writing the html and when I copied and pasted what you sent it ALL showed up on the page exactly as written. ? It was also part mail to link part add to faves link.


I added in a < > or two trying to get it to read rather than write it, and lost some of the wording, but it was still showing part of the writing and a mail to link. ?
Copy linkTweet thisAlerts:
@SanimJul 07.2005 — Put the script felgall gave you inside this:

<script type="text/javascript">

<!--

// -->

</script>
Copy linkTweet thisAlerts:
@Mr_JJul 08.2005 — I am just puzzled as to how anyone can claim copyright to a script of that nature.

There's nothing in there that hasn't been done a thousand times before
×

Success!

Help @consign1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...