View Single Post
  #1 (permalink)  
Old 06-15-2007, 02:22 PM
Ed Ed is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Ed is on a distinguished road
Jsp and javascript
Hi,
I have a problem, I don't know how can I do that.
I have a jsp file, that it has a javascript function and I want recollect the information that it returns to me

Code:
<script language="JavaScript"> <!-- function browser() { var browser= navigator.appName var option = 0; if (browser== "Microsoft Internet Explorer") return option = 0; else return option = 1; } //--> </script>
I tried like this but it doesn't work
Code:
<% int option=browser(); if(option==1){ %>
Reply With Quote
Sponsored Links