hi !
try this :
put the following snippet in the form tag.....onSubmit='return
whatBrowser()'
then the javascript code is
function whatBrowser() {
document.Browser.Name.value=navigator.appName;
document.formname.Br_Name.value=navigator.appName;
return true;
}
Gautam Batra
----- Original Message -----
From: Mark Smith <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 10, 1999 10:31 PM
Subject: Getting Javascript values for servlet use !
> Does anyone have the proper syntax for getting javascript values for a
> servlet use.....
>
> this is what i did:
>
> <SCRIPT LANGUAGE="JavaScript">
> <!-- Begin
> function whatBrowser() {
> document.Browser.Name.value=navigator.appName;
> }
>
> --------------------------
> and in the form i had a hidden field
> <input type="hidden" name="Br_Name"
> value=javascript:document.Browser.Name.value>
>
>
> this does not seem to work....
> -
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html