Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 17-03-2011, 05:11 AM   #1 (permalink)
Alpha Geek
 
masterkd's Avatar
 
Join Date: Feb 2011
Location: Kolkata
Posts: 521
Question HTML META tag error!!


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??
__________________
i5 2500K|P8Z68 V PRO|560Ti Hawk|G Skill 8GB 1600MHz|SG 500 GB|WD Passport 1TB|TX850V2|690II Advanced|BenQ G2420HD|Razer Cyclosa Bundle|Razer Goliathus|APC 1.1 KVA|DLink 2730U WiFi Router|Windows 7 X64
Samsung Galaxy Note :hyper:

Steam
masterkd is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 17-03-2011, 09:51 AM   #2 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default Re: HTML META tag error!!

@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=http://www.google.co.in">
</HEAD>
<BODY>
page will redirect to google.com in 5 sec...............
</BODY>
</HTML>
see:
HTML META Tags
Quote:
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=http://www.some.org/some.html">


or (HTTP header)

Refresh: 3;URL=http://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'>)
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
arpanmukherjee1 is offline   Reply With Quote
Old 17-03-2011, 10:24 AM   #3 (permalink)
Alpha Geek
 
masterkd's Avatar
 
Join Date: Feb 2011
Location: Kolkata
Posts: 521
Default Re: HTML META tag error!!

that is a really silly mistake..thanks!!
__________________
i5 2500K|P8Z68 V PRO|560Ti Hawk|G Skill 8GB 1600MHz|SG 500 GB|WD Passport 1TB|TX850V2|690II Advanced|BenQ G2420HD|Razer Cyclosa Bundle|Razer Goliathus|APC 1.1 KVA|DLink 2730U WiFi Router|Windows 7 X64
Samsung Galaxy Note :hyper:

Steam
masterkd is offline   Reply With Quote
Old 18-04-2011, 01:17 PM   #4 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2011
Location: IIT Delhi
Posts: 35
Default Re: HTML META tag error!!

always use "http://" when u making external links
aningbo is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx
- by clinton

Advertisement




All times are GMT +5.5. The time now is 12:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2