| Author |
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" onclicck="calculateStartTime();parent.frames[0].location.href='geoZoneMaintenance.do?requestAction=prepareMap';setAction('execute','home.do?inquireAnswer=true');"/> <input type="button" value="NO" class="frm_button_short" onclicck="parent.frames[1].location.href='home.do?inquireAnswer=false'"/> I have tried using onload but that doesn't seem to work. Thanks Imad
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56202
|
|
|
Please be sure to post Javascript questions in the HTML/Javascript forum. I have moved this there for you.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
What trouble are you having.... basic idea Eric
|
 |
 |
|
|
subject: Using onload instead of onclick
|
|
|