Quote:
Originally Posted by Ditosta
Does anyone know of a good bookmark script that can bookmark the page you are currently on without having to hard code the URL ?
Right now I am using javascript and I have to put the url like this
javascript:bookmarksite('mysite', 'http://mysiteurl.com')
|
PHP Code:
<script type="text/javascript">
function bookmarksite()
{
if (document.all)
{
// For IE
window.external.AddFavorite(location.href, document.title);
}
else if (window.sidebar)
{
// For Firefox
window.sidebar.addPanel(document.title, location.href, "");
}
}
</script>
And then where you want it to show:
PHP Code:
<a href="javascript:bookmarksite();"> Bookmark Us!</a>