Hi:
My situation is this.
- I have a form in which there are 2 buttons, of which one is SUBMIT.
----- working fine
- I put one more button within this form now, which should generate a
preview in the new window
Since i already have a submit in the form, i used JavaScript to submit
this form. But the page
should open in a new window not the same.
The code is appended below, with certain commented items tht i tried
and not working.
function gopreview()
{
var pop =3D
window.open("preview.asp","width=3D260,height=3D35");
//pop.document.open();
//document.frmAddnews.action =3D
window.open("preview.asp","width=3D260,height=3D35");
//document.frmAddnews.submit();
}
The ordinary submit works
document.form.action=3D"preview.asp"
document.form.submit();
Regards
Syed Awdhil Ahmed
September 12, 2002