Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set the web site as home page

Status
Not open for further replies.

zxmax

Technical User
Joined
Nov 24, 2003
Messages
179
Location
CA
Any idea how to have a hyper link when clicked, it will set the web site as a home page at the clients machine ? (using IE or netscape) ,

Thanks
 
You do it with javascript... but it only works with Internet Explorer, and only v.5 and above:

Code:
<script language=&quot;JavaScript&quot;>
// check if it's IE and only output the link if it is
if (document.all){
  document.write('<a href=&quot;javascript:void(0);&quot; onClick=&quot;this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'[URL unfurl="true"]http://www.whateverwhatever.com\');&quot;><b>Click[/URL] Here to Make My Web Page Your Homepage</b></a>');
}
</script>


-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top