Forum Moderators: open
</head>
<Script language="javascript"
<!--
function PrintButtonPressed()
{
alert("I am here!");
}
// -->
</script>
<body>
<INPUT type="button" value="Click To Print VB" language="VBScript" OnClick="msgbox('I am here ') ">
<input type="button1" value="Click To Print JS" OnClick="PrintButtonPressed();">
</body>
The answer is simple - Firefox does not support either VBScript or ActiveX, which are both proprietary, Microsoft-only technologies.
So Javascript is the only possibility for cross-browser compatibility.
[mozilla.org...]
Note that there is a plugin for adding such compatibility, but the overwhelming majority of users will not have it installed, and I don't believe it is still maintained (there is no available version for Firefox 2.x).
Plus...
There are a couple of errors in the way you have wriiten your sample code above:
:) <script type="text/javascript">
(note the > at the end of the line too
<script type="text/javascript">
<!--
function PrintButtonPressed()
{
alert('I am here!');
}// -->
</script>
</head>
<body>