Trying to get client side javasctipt to run

  • Thread starter Thread starter Davef
  • Start date Start date
D

Davef

I put the following code on the Page_Load
Button1.Attributes.Add("onclick", "checkBal();")



It does hit the following javascript, but it will continue to post enen with the return false;

<script type="text/javascript">
function checkBal(){
alert("hi")
return false;
}
</script>
--

______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
(e-mail address removed)

Interested in Affordable Email Marketing?
Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
If you are interested in becoming a Reseller of HelixPoint products, contact (e-mail address removed)
______________________
 
Try this modification:
Button1.Attributes.Add("onclick", "return checkBal();")

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com



I put the following code on the Page_Load
Button1.Attributes.Add("onclick", "checkBal();")



It does hit the following javascript, but it will continue to post enen with the return false;

<script type="text/javascript">
function checkBal(){
alert("hi")
return false;
}
</script>
--

______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
(e-mail address removed)

Interested in Affordable Email Marketing?
Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
If you are interested in becoming a Reseller of HelixPoint products, contact (e-mail address removed)
______________________
 
Back
Top