Jawrd
05-09-2005, 08:41 AM
For my first Javascript i will make an "Add to Favourites Link"
<HEAD>
<script>
function addbookmark()
{
bookmarkurl="http://www.YourSite.com/"
bookmarktitle="Your Website Title"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarkti tle)
}
</script>
</HEAD>
<BODY>
<div align="center">
<a href="javascript:addbookmark()"><b>Bookmark This Page</a>
</div>
The word that has a gap in it should be "bookmarktitle"
<HEAD>
<script>
function addbookmark()
{
bookmarkurl="http://www.YourSite.com/"
bookmarktitle="Your Website Title"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarkti tle)
}
</script>
</HEAD>
<BODY>
<div align="center">
<a href="javascript:addbookmark()"><b>Bookmark This Page</a>
</div>
The word that has a gap in it should be "bookmarktitle"