set homepage

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
harsha
Forum Contributor
Posts: 103
Joined: Thu Jul 11, 2002 1:35 am
Location: Bengaluru (Bangalore) > Karnataka > India

set homepage

Post by harsha »

<a class="chlnk" style="cursor:hand"

HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">
Click here to make Dynamic Drive your default homepage</a>

this is the script that i found in the net
<body
onunload="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">

this is not working if i use the same script in the <body> tag can any one help in making this
Post Reply