CreekDawg99
03-17-2003, 05:07 PM
I have a web application in which a user fills out a form, clicks a "submit" button, and the results are returned to the screen.
This web application uses two different web pages for the form and the results.
What I am trying to accomplish is this: Once the user presses the submit button on the form, I open a new window that has a "Now searching..." text message. On the original page, there is some code that sets up the search and then loads another web page that displays the results. I want to be able to close the new window from the second page.
In the JavaScript function that is called when the "Submit" button is clicked from the first page, I use the following to open the new window:
hSearchWindow = window.open('searching.html', 'searchwindow', 'height=150, width=350, top=0, left=0, scrollbars=no');
How can I obtain on the second page the handle created (hSearchWindow) on the first page to close the new window? Or is there another way I should do this?
Any ideas would really be appreciated :)
This web application uses two different web pages for the form and the results.
What I am trying to accomplish is this: Once the user presses the submit button on the form, I open a new window that has a "Now searching..." text message. On the original page, there is some code that sets up the search and then loads another web page that displays the results. I want to be able to close the new window from the second page.
In the JavaScript function that is called when the "Submit" button is clicked from the first page, I use the following to open the new window:
hSearchWindow = window.open('searching.html', 'searchwindow', 'height=150, width=350, top=0, left=0, scrollbars=no');
How can I obtain on the second page the handle created (hSearchWindow) on the first page to close the new window? Or is there another way I should do this?
Any ideas would really be appreciated :)