HTML META tag error!!

masterkd

Padawan
i'm using following code using as client pull
Code:
<HTML>
<head>
<TITLE>HTML Learning</TITLE>
<meta http-equiv="refresh" content="5;url=www.google.com">
</head>

but when the page is refreshed after 5 secs it is giving file not found..i've tried other url and local html files too but same error..what i'm doing wrong??
 
@OP CONTENT reloads a DOCUMENT if CONTENT redirects to url it must contain an HTTP header that you are missing out

use:

Code:
<HTML><HEAD>
<META 
     HTTP-EQUIV="Refresh"
     CONTENT="5; URL=*www.google.co.in">
</HEAD>
<BODY>
page will redirect to google.com in 5 sec...............
</BODY>
</HTML>

see:
HTML META Tags
Refresh
Source: Netscape

Specifies a delay in seconds before the browser automatically reloads the document. Optionally, specifies an alternative URL to load. E.g.

<META HTTP-EQUIV="Refresh" CONTENT="3;URL=*www.some.org/some.html">


or (HTTP header)

Refresh: 3;URL=*www.some.org/some.html

In Netscape Navigator, has the same effect as clicking "Reload"; i.e. issues an HTTP GET with Pragma: no-cache (and If-Modified-Since header if a cached copy exists).

Note: If a script is executed which reloads the current document, the action of the Refresh tag may be undefined. (e.g. <body onLoad= "document.location='otherdoc.doc'>)
 
Top Bottom