This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes Checking if browser supports JAVASCRIPT and COOKIES... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Checking if browser supports JAVASCRIPT and COOKIES..." Watch "Checking if browser supports JAVASCRIPT and COOKIES..." New topic
Author

Checking if browser supports JAVASCRIPT and COOKIES...

Sebastian Milczanowski
Greenhorn

Joined: Aug 22, 2001
Posts: 1
Hi,
is there a chance with the aid of JSP to check whether
the browser supports JavaScript and Cookies or not and
send this information by email
My Idee was like this - is there myabe a better Solution?
<script language="JavaScript">
<!--
if(navigator.javaEnabled()){
document.write( "<input type='hidden' name='javaStatus' value='JAVA'></input>" );
}else{
document.write( "<input type='hidden' name='javaStatus' value='NO JAVA!'></input>" );
}
//-->
</script>
<input value="Submit" type="submit"></input>
</form>
Sebastian
Germany 08/22/01
 
Don't get me started about those stupid light bulbs.
 
subject: Checking if browser supports JAVASCRIPT and COOKIES...