私は現在、ウェブサイトの開発の真っ最中です。ユーザーがボタンを押した場合、javascript 関数を呼び出す必要があります。この関数を次のように簡略化しました。
<html>
<head>
<script type="text/javascript">
function newProd(number,customer,software,hardware,name)
{
//I simplified this function
alert('number is: '+number+'customer is: '+customer+' software is: '+software+' hardware is: '+hardware+' name is: '+name);
}
</script>
</head>
<body>
<input type="text" name="textfieldCustomer"><br>
<input type="text" name="textfieldSoftware"><br>
<input type="text" name="textfieldHardware"><br>
<input type="text" name="textfieldDescription"><br>
<input type="button" name="button" value="go to function" onClick="newProd('a number',textfieldCustomer.value,textfieldSoftware.value,textfieldHardware.value,textfieldDescription.value)">
</body>
ユーザーが Internet Explorer でボタンを押すと、機能は完全に機能します。残念ながら、この機能は Chrome や Safari では機能しません。
何がうまくいかないのか誰にもわかりませんか?