Closing the current window

Results 1 to 2 of 2

Thread: Closing the current window

  1. #1
    Join Date
    Dec 1969

    Default Closing the current window

    The JS below opens another window and closes the current window. The problem I&#039;m having is that I&#039;m being prompted to close the current window. How can I stop the prompt and just have the window close ? <BR><BR>Many Thanks.<BR><BR>&#060;script language="JavaScript"&#062;<BR>&#060;!-- Hide script from old browsers<BR>// End hiding script from old browsers --&#062;<BR>"pageName.asp", "LookUp", "width=300,height=400,scrollbars=yes");<BR>window. close()<BR>&#060;/script&#062;<BR>

  2. #2
    Join Date
    Dec 1969

    Default Don't think you can

    It is a feature of the browser, trying to protect you from malicious code

Posting Permissions

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