If you read the Javascript forum you have seen this so forgive me. Anyway.
I have a page that submits to a new page then closes. The problem that I am having (actually it is more annoying than a problem) is that it seems to open twice. It opens the new window seems to redirect to the same page. This is what the code looks like.
<form method="post" action="letter_selection.asp" name="unit&userid_info" target = "NWWINDOW">
** additional code in here **
function NewWindow()
{
NWWINDOW=window.open('letter_selection.asp','NWWINDOW','toolbar=no,status=no,
width=400,height=500');
window.close();
}
After some trouble shooting it I found it opens the new window using the function then it submits the form making it look like it redirects. I know this because in the new window you can go back and it is the same page. What I want to know is how get it to open the new window and submit at the same time.
*** Before anyone freaks this is for an intranet site and part of a workflow system. So I'm not being annoying closing the original window. It works better with it closed. *** AJ
I would lose my head if it wasn't attached.
I have a page that submits to a new page then closes. The problem that I am having (actually it is more annoying than a problem) is that it seems to open twice. It opens the new window seems to redirect to the same page. This is what the code looks like.
<form method="post" action="letter_selection.asp" name="unit&userid_info" target = "NWWINDOW">
** additional code in here **
function NewWindow()
{
NWWINDOW=window.open('letter_selection.asp','NWWINDOW','toolbar=no,status=no,
width=400,height=500');
window.close();
}
After some trouble shooting it I found it opens the new window using the function then it submits the form making it look like it redirects. I know this because in the new window you can go back and it is the same page. What I want to know is how get it to open the new window and submit at the same time.
*** Before anyone freaks this is for an intranet site and part of a workflow system. So I'm not being annoying closing the original window. It works better with it closed. *** AJ
I would lose my head if it wasn't attached.