Solved

add onclick button to load another page

Posted on 2007-11-24
2
3,486 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Editing .asp website 5 33
Selenium findElement(By.classname  identifier 15 36
Drag & Drop Error 5 32
Doubt with angularJs with PHP 4 20
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

751 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