You need to put quotation marks (single or double) around the attributes of your tag <input>.
Firefox probably handles unquoted attributes differently for IE: http://www.cs.tut.fi/~jkorpela/qattr.html
You also need to remove the extra point at "document.", as others have said, and you should probably reorganize drvFuncto remove eval.
The following works fine for me in Firefox 3:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<script type='text/javascript'>
function drvFunc(elem)
{
alert(elem.value);
}
</script>
</HEAD>
<BODY>
<form name="frm" method="post">
<input type="button" name="myButton" id="myButton" value="MyButton" onclick="drvFunc(this)">
</form>
</BODY>
</HTML>
source
share