
Originally Posted by
blm126
Well, maybe a more cross browser solution would be to use CSS and :visited.
Then wouldn't this serve as a cross browser script? well, I thought it would.
..if anyone can confirm that the script works in netscape and mozilla and opera - the link should disspear after you've set it as your homepage.
Code:
<span id=hp style="behavior:url(#default#homepage)"></span>
<script type="text/javascript">
//<!--
if (!hp.isHomePage('http://www.dynamicdrive.com/')) {document.write("<p><a href=\"#\" onclick=\"style.behavior='url(#default#homepage)';setHomePage('http://www.dynamicdrive.com/');return false;\">Make DynamicDrive your homepage</a>");}
//-->
</script>
thanks.
Bookmarks