Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2004, 12:15 PM
Authorized User
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default page directing

hi,
how do i create a html page that automatically loads the next page in 3 seconds?
thanks

 
Old November 17th, 2004, 12:30 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can use the meta refresh tag in the <head> of your page e.g.
Code:
<meta http-equiv="refresh"
      content="5; url=http://www.example.com/newpage" />
However, to quote the W3C
Quote:
quote:This is a deprecated example which, using the meta element, forwards the user from one page to another after a timeout. However, this markup is non-standard, it disorients users, and it can disrupt a browser's history of visited pages.
HTH,

Chris

 
Old November 17th, 2004, 12:40 PM
Authorized User
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i would only like them the see http://www.example.com/
how can i prevent the vistor to see http://www.example.com/newpage in the IE address field?


 
Old November 17th, 2004, 12:43 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
<meta http-equiv="refresh"
      content="5; url=http://www.example.com" />
 
Old November 18th, 2004, 05:40 AM
Authorized User
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if i use this, it will not load the newpage .

Quote:
quote:Originally posted by ChrisScott
Code:
<meta http-equiv="refresh"
      content="5; url=http://www.example.com" />
 
Old November 18th, 2004, 05:51 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

The following works fine for me in IE & Mozilla

Code:
<html>

<head>
  <title></title>
    <meta http-equiv="refresh"
      content="5; url=http://www.example.com" />
</head>

<body>
</body>

</html>
Cheers,

Chris

 
Old November 18th, 2004, 08:36 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by sentme_mail
 i would only like them the see http://www.example.com/
how can i prevent the vistor to see http://www.example.com/newpage in the IE address field?
For that you need to use a frameset.

--

Joe (Microsoft MVP - XML)
 
Old November 22nd, 2004, 03:21 PM
Registered User
 
Join Date: Nov 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use frame or iframe ,
and add the following:

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

between <head>and </head> in the page code which
the subframe links to.

about the iframe:

...
<td><iframe src="the-file-name-you-want-to-load-in-the-ifame" border=0 srolling=no frameborder=0>
...





Similar Threads
Thread Thread Starter Forum Replies Last Post
access C#.Net page as action of calssic ASP page mansharma_s ASP.NET 1.x and 2.0 Application Design 6 January 7th, 2008 10:58 AM
Printing PDF (page x to y) / multiple page seq's robbert XSLT 1 November 13th, 2006 10:27 AM
Directing users dungey Javascript 3 March 10th, 2004 05:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.