window close

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Todd Anderson

    window close

    I need a popup window to close after 10 seconds. I have 2 ideas, and
    neither work.
    Any help is appreciated.

    <META HTTP-EQUIV='Refresh' CONTENT='10;
    URL=javascript: this.window.clo se()'>

    or...
    <SCRIPT LANGUAGE="JavaS cript">
    <!-- Begin
    function closeWin() {
    window.close();
    }
    // End -->
    </SCRIPT>
    </head>

    <body bgcolor="#ff0b1 1" onLoad:"javaScr ipt:closeWin()" >

  • Lasse Reichstein Nielsen

    #2
    Re: window close

    Todd Anderson <todd@asgweb.ne t> writes:
    [color=blue]
    > I need a popup window to close after 10 seconds. I have 2 ideas, and
    > neither work.[/color]

    How don't they work? The window doesn't close, or it closes too soon,
    or what?

    Try:
    <body onload="setTime out(window.clos e,10000)">

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    Working...