Solved

In jsp  confirm  logout

Posted on 2004-03-29
2
357 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 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

739 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