Link to home
Start Free TrialLog in
Avatar of master_programmer
master_programmerFlag for Saudi Arabia

asked on

add onclick button to load another page

Hi,
I have a jsp form with two standard button labeld "accept" and "reject", what i want is :
when i click " accept" button it will load to another page called "accept.jsp" and
when i click " reject" button it will load to another page called "reject.jsp"
how to add this onclick action to the button ?
thanx
ASKER CERTIFIED SOLUTION
Avatar of ncoo
ncoo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
to goto any page;
<input type=button value="Send" onClick="document.location.href='XXX.jsp'">