Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Using a button to show a message and as a hyperlink



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
mel1



Joined: 17 Jun 2008
Posts: 6

PostPosted: Fri Jun 20, 2008 4:01 am    Post subject: Using a button to show a message and as a hyperlink Reply with quote

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
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 629
Location: Cebu City Philippines

PostPosted: Fri Jun 20, 2008 4:07 am    Post subject: Re: Using a button to show a message and as a hyperlink Reply with quote

Posting twice would'nt help:
http://www.devppl.com/forum/images-as-buttons-vt10814.html?highlight=
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap