/    Sign up×
Community /Pin to ProfileBookmark

Jumping the Page Automatic

I know how to jump the page using HTML but how can I get it to jump automatically when the page loads without clicking on any links? ?

Thankyou!

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYNov 12.2005 — what do you mean by "jump"?
Copy linkTweet thisAlerts:
@pilot_rikauthorNov 12.2005 — Like it does on this tutorial

[URL=http://www.htmlgoodies.com/tutorials/getting_started/article.php/3479511]Click Here[/URL]
Copy linkTweet thisAlerts:
@balloonbuffoonNov 12.2005 — Well, these jumps are formally known as anchors, just FYI. Anyway, here's what you do:
[CODE]//Put this onload event in your body tag
<body onload="window.location = '#landing_spot'">
//place the anchor where you desire and it will "jump" to it when the page loads
<a name="landing_spot"></a>[/CODE]


--Steve
Copy linkTweet thisAlerts:
@mazyNov 13.2005 — You can also use META tag thing, that goes in <head> and looks just like this:
[code=html]<META HTTP-EQUIV="Refresh" Content="0; URL=http://www.bbc.co.uk">[/code]

this will refresh a browser and send it to www.bbc.co.uk zero seconds after your page is loaded.
Copy linkTweet thisAlerts:
@MikeGNov 13.2005 — I would like to use the meta tag to auto switch to another page but not as soon as the page is loaded. Can the command be delayed in any way?

thanks
Copy linkTweet thisAlerts:
@de_domainNov 13.2005 — @Mike

hi

than you can only use javascript

<body onload="window.location = 'http://www.jump.to'">

best regards

[URL=http://www.domainunion.de]domain[/URL]
Copy linkTweet thisAlerts:
@CharlesNov 13.2005 — &lt;META HTTP-EQUIV="Refresh" Content="0; URL=http://www.bbc.co.uk"&gt;That initial "0" in the content attribute, that defines the number of seconds to wait before the refresh. Just increase that value.
Copy linkTweet thisAlerts:
@Stephen_PhilbinNov 13.2005 — Just a little note:

The Javascript redirect will get you blacklisted on Google and the meta method with get you sort of [i]dark-grey listed[/i].
×

Success!

Help @pilot_rik 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...