Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

In jsp  confirm  logout

Posted on 2004-03-29
2
Medium Priority
?
378 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
[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
2 Comments
 
LVL 25

Accepted Solution

by:
devic earned 750 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…

721 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