Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3489
  • Last Modified:

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
0
master_programmer
Asked:
master_programmer
1 Solution
 
ncooCommented:
<html>
<head>

</head>

<body>
<input type="button" onclick="top.location='accept.jsp'" value="Accept"/><br/>
<input type="button" onclick="top.location='reject.jsp'" value="Reject"/><br/>

</body>
</html>

0
 
ysnkyCommented:
to goto any page;
<input type=button value="Send" onClick="document.location.href='XXX.jsp'">
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now