Log in

View Full Version : Where to Open the Action URL



Rain Lover
10-10-2010, 06:43 PM
Hi,

Please look at the following reference:
http://www.w3schools.com/tags/att_form_target.asp

If the target attribute of <form> is deprecated, what's the right way to do it?


Thanks in advance!
Regards
Rain Lover

traq
10-10-2010, 10:20 PM
do what?

if you're asking about forcing the form results to open in a new window, you shouldn't. It's generally frowned upon to try and force that kind of control (ignoring/ overruling user preference), and many newer browsers ignore it anyway.

If you really want to, you could use javascript to intercept the form submission and try to open it in a new window (though, as I mentioned, some browsers/ popup blockers will prevent this anyway).