| View previous topic :: View next topic |
| Author |
Message |
mel1
Joined: 17 Jun 2008 Posts: 6
|
Posted: Fri Jun 20, 2008 4:01 am Post subject: Using a button to show a message and as a hyperlink |
|
|
Hi, I am wondering whether it is possible to have two onClick events for the one button in a form. I want to first "saysomething" (as in a message) and once the user clicks okay on the message I would like it to return to the home page (ie. hyperlink)
My code is below but it does not work, can anyone help?
<form action="0">
<input type="button" value="Home Page"
onclick="saySomething('Return to home page')
onClick="a href = home.html">
</form>
Any help appreciated. Mel |
|
| Back to top |
|
 |
|
|
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 629 Location: Cebu City Philippines
|
|
| Back to top |
|
 |
|