Web Analytics Made Easy -
StatCounter META name - CodingForum

Announcement

Collapse
No announcement yet.

META name

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • META name

    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

  • #2
    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.
    Zvona
    First Aid for
    Web Design

    Comment


    • #3
      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 ?

      Comment


      • #4
        <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 Here, watch: <input ... onclick="javascript:do_something();" />

        SYP}{ER
        New to the CF scene
        Last edited by SYP}{ER; Jul 7, 2002, 09:19 AM.
        Offtone.com - In the works...

        Comment


        • #5
          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 Here, watch: <input ... onclick="javascript:do_something();" />

          syp...
          just a checkout® this thread...

          http://www.codingforum.net/showthrea...&threadid=1241
          The New JustaBuster Version 2.0 OR JustaBusta Lite V2.0
          ...just a special® thanx kinda hugs to jkd n' nex ...:O)))

          CommemorateWTC.com --Please lend your support

          Comment

          Working...
          X