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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to use javascript to set the default page

Status
Not open for further replies.

rascal

Programmer
Sep 14, 2000
2
0
0
BR
Hi all,

I am looking for a way to set the current page as the browser's default page. I want to offer to the user a link where he can click and set the default page of the browser. It is necessary that the function work for IE and Netscape.

thanks [sig][/sig]
 
IE

default home page
<A HREF=&quot;&quot; onClick=&quot;this.style.behavior='url(#default#homepage)'; this.setHomePage(' STYLE=&quot;color: #FFFF00; cursor: hand;&quot;>Click here to make YourSite your default homepage!</A>
favorite
<a href=&quot;javascript:window.external.AddFavorite('
Netscape

default
No can do...

favorite
CTRL + D is to add a favorite [sig]<p>Dano<br><a href=mailto:dskryzer@hotmail.com>dskryzer@hotmail.com</a><br><a href= </a><br>What's your major malfunction[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top