change if(document.iform.but1.value()=="") to if(document.iform.but1.value=="") -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sharat Babu Sent: Tuesday, January 25, 2000 5:01 AM To: [EMAIL PROTECTED] Subject: jsp not supporting the following type of javascript. Importance: High <HTML> <HEAD> <script> function display() { if(document.iform.but1.value()=="") { alert("hello enter the value"); } } </script> </HEAD> <BODY BGCOLOR="#FFFFFF"> <form name=iform> <input type=text name=but1 value=""> <a href="javascript:display()"><img src="/project/images/imggo.gif"></a> </form> </BODY> </HTML> if i used the script it is giving object does not support like this. any help needed. regards sharat =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
