By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

How do I add "target self" to a forms url action

Claus Mygind
100+
P: 571
I want the resulting (returned page) to open in another tab on firefox. How can I add that to this code? Or what code might I write to get that result?

Expand|Select|Wrap|Line Numbers
  1.  
  2. <form 
  3.     method=POST 
  4.     id  ="f1"
  5.     name="f1"
  6.     action="<my app>.exe"
  7.     onSubmit="return false;"
  8. >
  9.  
  10.  
  11. <input
  12.    type="button"
  13.    value="Submit" 
  14.    onclick="if ( validateSubmit() ) {document.f1.submit();}; "
  15. />
  16.  
Oct 8 '09 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Usually, target="_BLANK" or similar should work.
Oct 9 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.