Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: META name

  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 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
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post
    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

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 ?

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    183
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <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();" />

    Last edited by SYP}{ER; 07-07-2002 at 01:19 PM.
    Offtone.com - In the works...

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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...

    space between java & script?
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •