close window - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

close window

akanshakansh Posts: 4Member
Can anyone plz tell me that how do we close the explorer window through a link in a web page made in PHP?
Thanks

Comments

  • DarQDarQ Posts: 1,625Member
    [red]
    ah well, this has really nothing to do with php ;-) JavaScript is the keyword here.

    window.close();

    under normal circumstances, this will work very good. but browsers may or may not close your window. Popups are almost always closed by that script, but under mozilla, the mainwindow wont be closable.
    [/red]
    : Can anyone plz tell me that how do we close the explorer window through a link in a web page made in PHP?
    : Thanks
    :

    [size=5][italic][blue]Dar[RED]Q[/RED][/blue][/italic][/size]
    url--> http://mark.space.servehttp.com

  • codecraigcodecraig Posts: 163Member
    [blue]
    do this in php

    [code]
    <?php

    print ("<script>window.close();");

    ?>
    [/code]
    [/blue]


    peace.
    Craig


    : [red]
    : ah well, this has really nothing to do with php ;-) JavaScript is the keyword here.
    :
    : window.close();
    :
    : under normal circumstances, this will work very good. but browsers may or may not close your window. Popups are almost always closed by that script, but under mozilla, the mainwindow wont be closable.
    : [/red]
    : : Can anyone plz tell me that how do we close the explorer window through a link in a web page made in PHP?
    : : Thanks
    : :
    :
    : [size=5][italic][blue]Dar[RED]Q[/RED][/blue][/italic][/size]
    : url--> http://mark.space.servehttp.com
    :
    :

  • JonathanJonathan Posts: 2,914Member
    If you want a [b]link[/b] to close the window (what you originally asked for, though you may have got it from what the other guys said), just emit this (print statement or just outside the <? ... ?> tags):-



    Jonathan


    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.