|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Redirecting to a webpage within a form with action tag set to a different webpage
I am using a form. This has the action tag set to another page. But within this form I am using a button, which when clicked should take me to a different page. How could I do this? Any help is appreciated. Thank You.
- B |
|
#2
|
||||
|
||||
|
just make your button a standard button and not a Submit button. That way the button will have an action associated with it that is independent of the form. For example:
Code:
<input type="button" value="Button" onclick="document.location.href='http://www.apple.com';"> ... will take you to a website that will allow you to purchase a cool, new G5.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
|
#3
|
|||
|
|||
|
Thank You. I sorted it out.
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Redirecting to a webpage within a form with action tag set to a different webpage |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|