|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
How to do this.... Part 2
<script type="text/javascript">
<!-- function pageselect(x){ switch (x) { case 1: form1.setAttribute("action"," correct.htm"); break; case 2: form1.setAttribute("action","incorrect.htm"); break; } } // --> </script></head> <body> <form action="correct.htm" method="post" target="_new" name="form1"> <input type="text" name="test" /> <input type="submit" value="yes" onClick="pageselect(1)"><input type="submit" value="no" onClick="pageselect(2)"> </form> </body> </html> okay this is the code...but when I click they open in a new window...but I want in the same...any ideas ? thanks |
|
#2
|
|||
|
|||
|
RE: How to do this.... Part 2
remove the target attribute (target="_new") from the form tag...
|
|
#3
|
|||
|
|||
|
RE: How to do this.... Part 2
Oooh...how stupid I am...I haven't seen these tags...thanks
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > How to do this.... Part 2 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|