Solved

In jsp  confirm  logout

Posted on 2004-03-29
2
340 Views
Last Modified: 2008-03-10
in struts  application i have a  link "Logout".. After click on the hyper link...  i  want to take confirmation..

 i used javascript

<a href="<%=request.getContextPath()%>/logout.do" target="main" class="leftnav"  onClick="conform("Are you sure you want to Logout??);">Logout</a>

but it is  ls loging out  in both cases  Yes/Cancle......

please help me...

Hari
0
Comment
Question by:hariprasadb
  • 2
2 Comments
 
LVL 25

Accepted Solution

by:
devic earned 250 total points
ID: 10703596
<a href="<%=request.getContextPath()%>/logout.do" target="main" class="leftnav"  onClick="return confirm('Are you sure you want to Logout??');">Logout</a>
0
 
LVL 25

Expert Comment

by:devic
ID: 10703769
hi hariprasadb,
are you not satisfied with the answer?
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 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

17 Experts available now in Live!

Get 1:1 Help Now