X
xman
how create redirection to some URL by clicking on the form button?
any ideas?
any ideas?
[email protected] enlightened us said:how create redirection to some URL by clicking on the form button?
any ideas?
RE: sorry I am javascript newbiePlenty.
The simplest being
onClick="top.location.replace('myNewLocation.html');"
(which will also break out of a frameset)
xman said:and
<input type="submit" name="Submit"
onclick="top.location.replace('myNewLocation.html');form1.submit();">
but nothing..
[email protected] enlightened us said:and
<input type="submit" name="Submit"
onclick="top.location.replace('myNewLocation.html');form1.submit();">
but nothing..
What exactly are you trying to accomplish here? I think there's a better
way
for you than this.
If you just want to redirect to a page when a user clicks a button, do it
this way:
<form>
<input type="button" name="b1" value="click here"
onClick="top.location.replace('myPage.html');">
</form>
Note: change myPage.html to a REAL page/URL. That's just an example.
PHP2 said:RE: yes it work, if I have not form action "/masterpanel/index.cgi"!
but I must have it because YES button!
<form name="form1" method="post" action="/masterpanel/index.cgi">
how can NO button work at same time?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.