Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2006, 06:02 AM
Registered User
 
Join Date: Nov 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change onclick of a button

hi all,

I have a button. in the html page i have coded like this

<input type="button" name="button1" value="Button 1" onclick="function1();"/>

in the onload of the page i need to change the onclick of this button

how can this be made possible to dynamically change the onclick of a button

zeta


 
Old November 20th, 2006, 10:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

Take a look at http://www.chovy.com/web-development...onclick-event/ it gives one approach to doing this, or you can google it like I did (http://www.google.co.uk/search?q=jav...en-US:official)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Button onClick Apocolypse2005 Javascript 1 November 25th, 2005 09:37 AM
change <td> value onClick crmpicco Javascript How-To 2 August 23rd, 2005 07:31 AM
using onClick to change images kyle.burnam Javascript How-To 2 March 10th, 2005 11:09 AM
onClick change bgcolor of entire row Pallav Javascript How-To 2 October 21st, 2004 12:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.