Solved

add onclick button to load another page

Posted on 2007-11-24
2
3,484 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Input box width 6 27
Button and js nou working 3 8
Can't get js include to work in html file 8 15
asp.net input html code have it display the content 2 13
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

803 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