I have a requirement where when a button is clicked, the output has to appear in a new window.I am doing this by writing a function and calling window.open(url); This method works fine but the servlet is invoked by GET method. Is there any way I can invoke the servket by POST method while opening in a new window ?
If you don't need fine-grained control over the newly opened window, you can just use the target attribute on the form tag to open a new browser window. If you specify target="_blank" a brand new window will be opened. If you do need control over the window, you can use window.open() to create a named window, and then adjust the target attribute of the form to post into that window. hth, bear
Hi Bear, Thanks for the info. I am not very sure that form element accepts target. Do u have any code for this ? Can you pl send it to me. Thanks and Regards, Javed.