alwaysvaghu Posted November 11, 2005 Share Posted November 11, 2005 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 More sharing options...
alwaysvaghu Posted November 11, 2005 Author Share Posted November 11, 2005 i have used target="_blank".....But it is giving msg like " POPUP is BLOCKEd"so what should i do<FORM NAME=FORM1 ACTION="file name" METHOD="GET" target="_blank"><INPUT TYPE=SUBMIT></FORM> Link to comment Share on other sites More sharing options...
hacknsack Posted November 13, 2005 Share Posted November 13, 2005 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 More sharing options...
Chocolate570 Posted November 13, 2005 Share Posted November 13, 2005 Ya, and also 'coz a button can call a js function and window.open is a js function, you can do it straight from the button(i think?) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now