Forum Moderators: open

Message Too Old, No Replies

Opening a new window with compact size

         

tlnprasad

9:01 am on Nov 21, 2007 (gmt 0)

10+ Year Member



Hi Frieds,

1) I have used code for submit the form in a new window like this

document.forms[0].method = "post";
document.forms[0].action = "download.ro";
document.forms[0].target = "_blank";
document.forms[0].submit();
It is working fine, coming in a new window, but we wanted to open in a compact window, like we wanted to give the size of the window and we dont need all the menubars and all.

2) I have tried like below also

window.open('download.ro','windowname','height=300,width=300');
In this case I can give the height, width but here problem is form is not submitting, meaning form contains hidden variables, and these are not submitting to the new window. Give me code how to allow the new window to take this form fields.

Please help us any one of the two cases ASAP..

Thanks,
TLN Prasad.

vincevincevince

9:10 am on Nov 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



document.forms[0].target = "_blank";

Change the '_blank' to the windowname from the popup; and open the popup first.