Jump to content

Submit Button help


alwaysvaghu
 Share

Recommended Posts

Helo Frnds...We use submit buttons in html..see here<FORM NAME=FORM1 ACTION="file name" METHOD="GET"><INPUT TYPE=SUBMIT></FORM>when we click on that it will take us to other url("filename")..in that window..I WANT TO OPEN THAT in OTHER WINDOW....???How Can I do that..... :)

Link to comment
Share on other sites

Almost everyone has their popup blocker on these days, I notice you're using the "get" method.If you have a pretty basic query string you might consider building the url and using'window.open()' like:

window.open('http://www.google.com/search?hl=en&q=forms+popup+block&btnG=Google+Search','')

One draw back is that you'll need to escape or encode the values if your query gets complicated or contains certain characters.http://www.w3schools.com/js/tryit.asp?file...ryjs_openwindowheehee, Just like the link on the above line :) Thanks,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...