title: alert box not working in jsp
body: <p>I added a stylish alert box to my page, resource is <a href="http://csscody.com/demo/jquery-demo/custom-alert-boxes-using-jquery/80/" rel="nofollow">here</a> . But problem is after clicking <code>ok</code>, <code>confirmsubmit.jsp</code> is not opening. Also in that alert <code>cancel</code> button is not appearing why? </p>
  
  <p>javascript</p>
  
  <pre><code>  &lt;form action="confirmsubmit.jsp" method="POST"&gt;
      &lt;script type="text/javascript"&gt;
      &lt;!--
      function confirmation() {
      var answer = csscody.alert("Confirm submit?")// added csscody here for alert but after clicking ok nothing happens
      if (answer){
  
       window.location = "confirmsubmit.jsp";
     }
     else{
       return false;// here cancel button is not coming
     }
       }
     //--&gt;
     &lt;/script&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>html</p>
  
  <pre><code> &lt;input type="text" name="textboxname"/&gt;
   &lt;input type="submit" onclick="return confirmation()"/&gt; 
  &lt;/form&gt; 
  </code></pre>