title: Call external javascript function frm JSP
body: <p>I'm brand new to the javascript. I'm trying to call a javaScript function from my jsp.Its not working. I was trying to debug it through bugzila. It saying "No Javascript on this page"</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1" %&gt;
  
     &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4     /loose.dtd"&gt;
      &lt;html&gt;
        &lt;script type="text/javascript" src="ajaxs.js"&gt;&lt;/script&gt;
        &lt;head&gt;
           &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  
        &lt;/head&gt;
        &lt;body&gt;
      &lt;%
          out.println("Bismillahir Rahmanir Rahim");
      %&gt;
  
      &lt;jsp:useBean id="numBean" class="beans.NumberBean"&gt;
          &lt;jsp:setProperty name="numBean" property="*" /&gt;
      &lt;/jsp:useBean&gt;
  
      &lt;form action="index.jsp" method="post"&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;Enter Integers:&lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" id="inputString" name="inputString" 
                  value="&lt;jsp:getProperty name="numBean"    property="inputString" /&gt;" 
                  /&gt; &lt;/td&gt;
                  &lt;td&gt;(Use semi-colon to separate number)&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;M - number of largest element to find.:&lt;/td&gt;
                  &lt;td&gt;
                      &lt;input type="text" id="nthHighest" name="nthHighest" 
                              value="&lt;jsp:getProperty name="numBean" property="nthHighest" /&gt;" /&gt; 
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
        &lt;input type="submit" value="Identify" onclick="ajaxFunction()" /&gt;
        &lt;div id="result"&gt;&lt;/div&gt;
  
  
  
      &lt;/form&gt;
           &lt;/body&gt;
        &lt;/html&gt;
  </code></pre>
  
  <p>I'm trying to call "ajaxFunction()" on onclick event.
  I included js file as following at the top:
      <code>&lt;script type="text/javascript" src="ajaxs.js"&gt;&lt;/script&gt;</code>
  can u pls help me to identify what I'm doing wrong here...</p>
  
  <p>Thanks in advance</p>