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

redirecting to another page?

Status
Not open for further replies.

taval

Programmer
Jul 19, 2000
192
GB
Is there anyway I can redirect to another page because I'm planning to have index.html in each of my folders on my web site so that if people try to browse/view folders then the index.html will automatically redirect them to the proper main web page. Is there any problems with this way of trying to keep casual peekers out?

Also on my web site I have link to some work (in work folders) that I want to protect by not giving the url of in the status bar. Currently I have done something like this for the links:

<a onMouseOver=&quot;window.status='C++ thread sync';return true;&quot;
onMouseOut =&quot;window.status='';return true;&quot;
href=&quot;files/this.exe&quot; class=&quot;tool&quot; id=&quot;A9&quot; >this.exe</a>

This shows the message 'C++ thread sync' when the mouse cursor is over the link, but when I press the right or left mouse button down on the link it shows the url of the file, is there a way to stop this from happening?

Grateful for any help, Thanks.
[sig][/sig]
 
in the onload event of the body use window.location=&quot;index.htm&quot;

as far as hiding your links, you could always disable right clicking ( has a technique for this ) but remember, it will NEVER be totally secure


jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top