'Dynamic' Bookmark Javascript

T

timlbg

I work on a dynamic website and need to include code into our template
to allow a user to bookmark the page they are currently on. Each
'dynamic' page pulls from the template and I don't want to do a static
bookmark script that will be generic. I want it to be specific to each
unique page (Url and title). It also needs to work on both IE and
Mozilla based browsers. I would like to do this with traditional
javascript.

Here's what I've got so far:

<script type="text/javascript">

function bookmark(){
var title = document.title;
var utl = location.href;
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

</script>

Your help would be appreciated.

Thanks.

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top