Opening a new window

Results 1 to 2 of 2

Thread: Opening a new window

  1. #1
    Join Date
    Dec 1969

    Default Opening a new window

    I have a asp page that if a user doen&#039t exist goes to a new user create page. I&#039m trying to get this process to run in a new window and when complete close that window, so that the user is still at the original page they entered from. I can&#039t find a good way to do this and since I&#039ve been involved in ASP for about a week, I figure it&#039s time to ask for help. Thanks

  2. #2 Guest

    Default RE: Opening a new window

    First you include a target attribute in the link to the add user page:<BR><BR>&#060;a href="newuser.html" target="newwin"&#062;New User&#060;/a&#062;<BR><BR>newuser.html would be a form for the user details, and it would open in a new window. When submit, it would pass the results to your asp page to add to database, validate etc. In the body tag of the asp page you would add an onload attribute:<BR><BR>&#060;body language=javascript onload="window.close();"&#062;<BR><BR>When the asp page is finished processing and it is returned to the browser, it should close, due to the window.close command.<BR>

Posting Permissions

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