File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Java Script Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Java Script" Watch "Java Script" New topic
Author

Java Script

KedarMohanty KedarMohanty
Greenhorn

Joined: May 07, 2004
Posts: 1
I have a submit button in my jsp and I want to pop up a mesg to the user when ever he cliks the button more then once even when he do double click.Do we have any way to handle this in java script..Plz semd me the solution if any one knows..
Thanks Kedar
cell no:9819891892
Wendal Park
Ranch Hand

Joined: Aug 28, 2001
Posts: 39
Well, since you want to popup a new msg for every click even if the previous one isn't closed, so we can't use javascript:alert("...") here ..
I have a suggestion to popup a small window instead. Then everytime a user clicks on the button, a new window will come out!

(Since it won't let me type "onclick", so I use "on_click" in the code. remember to replace it to "onclick" when you try it.)
Hope this helps!
Wendal
[ May 07, 2004: Message edited by: Wendal Park ]

MSc, BSc, SCJP 1.4<br /> <img src="graemlins/banghead.gif" border="0" alt="[banghead]" /> SCBCD
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50677

Moving to the HTML/Javascript forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: Java Script
 
Threads others viewed
object dies when redirect=true
How to trap browser close button
submit thru javascript
struts and ajax
Passing parameters to the next action using html:button or html:submit
developer file tools