faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 23 people (35%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can I execute a javascript from a toolbar button. I created the button and script but the script will generate an erro from the button. Thanks

Apr 5th, 2008 19:01
ha mo, jsWalter, Jose Avila,


<script>
   function hitMe()
   {
      alert ( 'ouch!' );
   }
</script>
<input type='button' value='hit me!' onClick='hitMe()'>
Try that
Walter
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com