Closing a web page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruce A. Julseth

    Closing a web page

    What will the code look like to completely close a session? I want to put an
    "Exit" button on my form. Clicking this "Exit" button will cause the web
    page completely close down, just like clicking the "X" (close) in the upper
    right hand corner of the brower window.

    Thanks....

    Bruce



  • Xenovoyance

    #2
    Re: Closing a web page

    Bruce A. Julseth wrote:
    [color=blue]
    > What will the code look like to completely close a session? I want to put an
    > "Exit" button on my form. Clicking this "Exit" button will cause the web
    > page completely close down, just like clicking the "X" (close) in the upper
    > right hand corner of the brower window.
    >
    > Thanks....
    >
    > Bruce
    >
    >
    >[/color]

    That is a job for javascript, not php. This is because of closing a
    window is something that you want to do on the client side and if you
    think a bit you will most defenatly have heard that php is a server-side
    language =)

    Anyway, here is the javascript code..

    <a href="javascrip t:window.close( );">Close This Window</a>

    Cheers,
    Xenovoyance

    Comment

    Working...