/    Sign up×
Community /Pin to ProfileBookmark

Automatic loading a a page

I was wondering how you would get a webpage to load automatically after opening the initial page.

to post a comment
Full-stack Developer

6 Comments(s)

Copy linkTweet thisAlerts:
@Zach_ElfersJan 09.2003 — Like this?

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

With this, when the page loads, it will change to a new page.
Copy linkTweet thisAlerts:
@pyroJan 09.2003 — A non-javascript version is possible and recommended...

&lt;meta http-equiv="refresh" content="1; url=http://www.yoursite.com"&gt;

And, in your body, put a link - just in case the meta redirect doesn't work.
Copy linkTweet thisAlerts:
@toorudezauthorJan 09.2003 — 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???
Copy linkTweet thisAlerts:
@pyroJan 09.2003 — 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.
Copy linkTweet thisAlerts:
@StefanJan 09.2003 — [i]Originally posted by toorudez [/i]

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][/QUOTE]


Perhaps try using the correct syntax?

You are probably looking for someting like

url=file:///C:/WINDOWS/Desktop/plopp.html
×

Success!

Help @toorudez spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...