Solved

add onclick button to load another page

Posted on 2007-11-24
2
3,483 Views
Last Modified: 2010-05-18
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
Comment
Question by:master_programmer
2 Comments
 
LVL 15

Accepted Solution

by:
ncoo earned 500 total points
ID: 20343187
<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
 
LVL 9

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
html coding on my Tumblr blog 1 34
session migration servlets 2 26
factorial example 4 35
hibernate insert example 13 14
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now