Hi,
I have a dilemma. I have a web form that, when submitted, does a
window.open js function to submit the form data to a new aspx page
which then shows a report. I wanted to make sure that the first text
box control had the focus so I added javascript code to set that
focus. The only problem was that the popup window kept opening behind
the parent after the submit. So, I added a document.focus() in the
onload event of the new window. Now, when you hit submit, the parent
keeps the focus (due to the text control focus code) and the child
window will grab the focus shortly after when it begins to load. I am
in a catch-22 situation. How can I set the focus of the first text
box but relinquish the focus of the parent window immediately after
submit. I understand why it is grabbing the focus back for a second
since it is posting back to itself but I don't want it to do it that
way.
Anyone have any ideas?
Thanks, Chris