Solved

add onclick button to load another page

Posted on 2007-11-24
2
3,482 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
Comment Utility
<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
Comment Utility
to goto any page;
<input type=button value="Send" onClick="document.location.href='XXX.jsp'">
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

763 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

11 Experts available now in Live!

Get 1:1 Help Now