This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes code not working properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "code not working properly" Watch "code not working properly" New topic

code not working properly

gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
i m new to javascript ,,,i have some problem in the code below...

<!-- JAI SHRI RAM -->
<head><title>JAI SHRI RAM</title></head>
function ValidateForm(form)
alert('jai shri ram')
return false;
return false;

<form name=form1 action = "http://localhost:8080/main_page1.jsp" onSubmit="return ValidateForm(this)">
<input type="text" name="name">
<input type="submit">


it is not working plz tell me the problem
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

What do you expect it to do and in what way is it not working?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
IsEmpty... WHERE is the function at?

H Wilson
Ranch Hand

Joined: Feb 23, 2005
Posts: 33
Originally posted by gaurav chhabra:

alert('jai shri ram')
return false;
return false;

I notice that you are returning false whether IsEmpty() returns true or false. Is that really what you want to do? Perhaps that is the source of the problem. Otherwise it must be something in the IsEmpty() function. You would need to post that code here to get feedback.
I agree. Here's the link:
subject: code not working properly
It's not a secret anymore!