wood burning stoves 2.0
The moose likes HTML, CSS and JavaScript and the fly likes Using onload instead of onclick Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Using onload instead of onclick" Watch "Using onload instead of onclick" New topic

Using onload instead of onclick

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
I have two buttons inmy jsp with yes or no value. I want to get rid of both the buttons and always do what the button does when yes is clicked.

How do I replace the following code

<input type="button" value="YES" class="frm_button_short"
<input type="button" value="NO" class="frm_button_short"

I have tried using onload but that doesn't seem to work.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Please be sure to post Javascript questions in the HTML/Javascript forum. I have moved this there for you.

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
What trouble are you having....

basic idea

I agree. Here's the link: http://aspose.com/file-tools
subject: Using onload instead of onclick
It's not a secret anymore!