0
こんにちは私はクロームアプリを作成しています。私はボタンをJavaスクリプトを使用してクリックイベントを作成します。単純なhtmlページではうまく動作していますが、chromeアプリケーションでは動作しません。onclickはChromeのアプリで動作していませんか?
<!DOCTYPE html>
<html>
<body>
<form>
<input type="button" id="btn01" value="OK">
</form>
<p>Click the "Disable" button to disable the "OK" button:</p>
<button onclick="disableElement()">Disable</button>
<script>
function disableElement() {
document.getElementById("btn01").disabled = true;
}
</script>
</body>
</html>
私はonclickのイベントは、モバイル環境との互換性があるとは思いません。 –
この投稿をチェックしましたか? http://stackoverflow.com/questions/13591983/onclick-within-chrome-extension-not-workingイベントリスナーを追加する必要があります。 –