-[Bl@de Runner]
07-07-2002, 12:02 PM
Hi guys,
I have a META name in my page which I want to use:
<META HTTP-EQUIV=Refresh CONTENT="X; URL=doelpagina.html">
But how do I use it, do I have to call it from somewhere in my code, or something else, and if so, how do I call it ?
tnx
Zvona
07-07-2002, 12:07 PM
When meta-data is included in document, you don't have to call it separately. In other words, it's parsed and executed immediately.
<meta http-equiv="refresh" content="5;URL=http://www.google.com" />
will refresh the document with new URL (http://www.google.com) after 5 seconds.
-[Bl@de Runner]
07-07-2002, 12:17 PM
But what if i don't want to execute it immediately ?
Actually, what I want is that when I click a button in a frame in my page, an other frame gets refreshed. Is it possible to do this with a META name ?
SYP}{ER
07-07-2002, 01:16 PM
<input type="button" name="refresher" value="Refresh Frame" onclick="top.other_frame_name.location.reload()" />
Replace the bold part with the name of the frame you want to reload, and place that button in whichever frame you want. That ought to do it.
EDIT: Oh my... This forum replaces the whole word "JavaScript" with two words. That could cause some problems in the JS forum :eek: Here, watch: <input ... onclick="javascript:do_something();" />
:confused:
justame
07-07-2002, 01:22 PM
Originally posted by SYP}{ER
EDIT: Oh my... This forum replaces the whole word "JavaScript" with two words. That could cause some problems in the JS forum :eek: Here, watch: <input ... onclick="javascript:do_something();" />
:confused:
syp...
just a checkout® this thread...
http://www.codingforums.com/showthread.php?s=&threadid=1241