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!

Set as home page in IE

Status
Not open for further replies.

imquazar

MIS
Sep 23, 2003
54
US
Original code found at:
With all the different permissions and rights to restrict what can be done, sometimes you might find this little script useful to set a specific home page, especially where your Tools/Options has been limited by policy. So far I've used this a few times now, and it's worked right through the policies that are in place. Maybe it'll be helpful to you too, either for your own use, or for a customer of yours.

Script attached in this message, listed below. You'll need to edit the "charter.msn.com" part to make it be whatever you need it to be (and no, I don't work for Charter cable) and there are 5 places to make that change.
After you make the changes (in notepad for instance) save the text as an HTML file (I called mine sethome.html) and then execute it. It'll come up plain and simple with a link to set <YOUR HOMEPAGE> as homepage. Click on the link, it'll throw a confirmation dialogue to which you click yes, and it's done. Quite simple!

Enjoy!
-Imquazar



<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

if (document.all){
document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\' document.write('<B><CENTER>Click This Link to Automatically <BR>Make CHARTER.MSN.COM Your Homepage</CENTER></B></a>');
}

else if (document.getElementById){
document.write('<a href=" this link onto your <B>Home</B> button to automatically <BR>make CHARTER.MSN.COM your Home Page.</CENTER></a>');
}

else if (document.layers){
document.write('<b><CENTER>Make CHARTER.MSN.COM your home page:</b><br>- Click below to go to our home page<br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.</CENTER>');
}

else {
document.write('</CENTER><b>Make CHARTER.MSN.COM your home page:</b><br>- Click below to go to our home page<br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.</CENTER>');
}
// End -->

</script>
 
I think I can see some uses for this, but getting around a policy set by an administrator would not be one of them.


Jeff
The future is already here - it's just not widely distributed yet...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top