Setting Home Page Link

P

Pete

Am creating a web page & want a link on the page to click
on to set my page as a Home Page for the viewer. How is
this done? Thanks in advance
 
J

Jim Buyens

-----Original Message-----
Am creating a web page & want a link on the page to click
on to set my page as a Home Page for the viewer. How is
this done? Thanks in advance

Add this script where you want the hyperlink to appear:

<script>
if (navigator.appName.substring(0,9) == "Microsoft"){
document.write("<a href='" +
"javascript:window.external.addFavorite" +
"(document.location,document.title)'>" +
"Add to favorites.</a>")
}
</script>

This script works unmodified in any page. It gets the
current URL from the browser, and the link text from the
document title.

However, it only works in IE. Other browsers don't support
the window.external.addFavorite() method.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top