Ale*_*lex 1 javascript firefox
在图像中单击我编写用于调用java的代码
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<table cellpadding="0" cellspacing="0" width="311">
<tr>
<td height="14">
<img onclick ="SignIn();" border="0" src="../images/Sign_In.gif" width="80" height="28">
</td>
</tr>
</table>
<script type="text/javascript" language="JavaScript">
function SignIn(){
alert();
}
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
上面的代码在Internet Explorer中工作正常,但在FireFox中没有.问题是什么?
试试这个:
{ alert(); document.getElementById('FormSignIn').submit(); }
Run Code Online (Sandbox Code Playgroud)