Click to See Complete Forum and Search --> : Automatic loading a a page


toorudez
01-09-2003, 01:21 PM
I was wondering how you would get a webpage to load automatically after opening the initial page.

Zach Elfers
01-09-2003, 01:31 PM
Like this?

<body onLoad="self.location.href='newpage.html';">

With this, when the page loads, it will change to a new page.

toorudez
01-09-2003, 01:35 PM
:)

pyro
01-09-2003, 02:08 PM
A non-javascript version is possible and recommended...

<meta http-equiv="refresh" content="1; url=http://www.yoursite.com">

And, in your body, put a link - just in case the meta redirect doesn't work.

toorudez
01-09-2003, 03:12 PM
see.. the thing is.. is that i'm doing this for an internal page that is too be used a a directory search of one of our hard drives (but it's not part of our intranet). The page that i want to redirect to is in a subfolder on that drive. When I try the above mentioned methods of redirection, it won't work, and actually crashes my computer.

I've tried the <meta http-equiv="refresh" content="1; url=\\server\....">, but no luck.

is there something fancy that i have to do in the url= part???

pyro
01-09-2003, 03:39 PM
Well, if it is on an Intranet, the javascript way might be just as good. The only reason that I recommended the meta refresh was because on the Internet, you have no control over who has JavaScript enabled. An Intranet could be a different story.

Stefan
01-09-2003, 05:53 PM
Originally posted by toorudez
I've tried the <meta http-equiv="refresh" content="1; url=\\server\....">, but no luck.

is there something fancy that i have to do in the url= part??? [/B]

Perhaps try using the correct syntax?

You are probably looking for someting like
url=file:///C:/WINDOWS/Desktop/plopp.html