hi!!!! yes we also faced the same probelm when we ere trying to call some functions written in the javascript. Wherever u r giving formname.fieldname.value=<condition> make sure to put the word document before that. This solved our probelm. For eg: if ( form1.sName.value.length == 0) blah blah instead it should be if (document. form1.sName.value.length == 0) blah blah Hope this helps. Mark Jorritsma <[EMAIL PROTECTED]> on 06/16/2000 04:01:09 AM Please respond to A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: (bcc: Kher Tamanna-SWD-ITIL-UB/Itilmail) Subject: JavaScript/JSP problem What we have tried to do is add some JavaScript logic to a JSP to check user input in a text box on key events such as keypress, keydown and keyup. Using static HTML with JavaScript it works fine in both Netscape 4.5 and IE 4.0. When used in a JSP netscape completly ignores the key events but IE works fine. We are using jdk1.1.8 within IBMWebSphere Applicaton ServerV2.0. The strange thing is if we save the page source produced by the JSP as a html file and browse to that html file the javascript again works fine. Is there anybody out there who has encountered a similar problem and may be able to offer some advice. Thanks in advance, Mark =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets