Closing the Browser Window

Results 1 to 3 of 3

Thread: Closing the Browser Window

  1. #1
    Join Date
    Dec 1969
    Posts
    89

    Default Closing the Browser Window

    I want to close the browser window on the click event of a button. <BR><BR>Can this be done? if yes then please tell me the technique or the commands ....<BR><BR>THanks in advance

  2. #2
    Join Date
    Dec 1969
    Posts
    15

    Default RE: Closing the Browser Window

    window.close();

  3. #3
    Join Date
    Dec 1969
    Posts
    2,849

    Default RE: Closing the Browser Window

    A little more descriptive answer might me:<BR><BR>&#060;SCRIPT LANGUAGE=JavaScript&#062;<BR>function ButtonClicked()<BR>{ window.close(); }<BR>&#060;/SCRIPT&#062;<BR><BR>&#060;INPUT TYPE=BUTTON VALUE="Close Window" ONCLICK="ButtonClicked();"&#062;<BR><BR>Does this answer your question?

Posting Permissions

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