0
Grad-ProjectのChrome拡張機能でパスワードマネージャを作成しようとしています パスワードジェネレータを持っていますが、Broweractionがサポートしていない大きな問題は、 、inline JavaScript will not be executed onclickの 私は発電機があなたの質問についてパスワードジェネレータChrome拡張機能のonsubmit/onclickの置き換え方法
<form method="get" name="passform" onsubmit="generate();javascript:passInBox(); return false;">
<p>
Choose Length:
<select id="length" style="padding:0.2em 1.5em;font-family:monospace; font-size: 16px">
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
</select>
</p>
<p style="margin-top:0.5em; line-height:1.5"><input type="radio" id="alphabetic" checked="checked" name="type"> <label for="alphabetic">Alphabetic</label><br>
<input type="radio" id="alphanumeric" name="type"> <label for="alphanumeric">Alphanumeric</label><br>
<p><input id="Gbutton" type="submit" value="Generate password" id="show" style=" " onClick= \""></p>
<p><input type="password" id="result" name="passbox" tabindex="1" size="20">
<div style="font-size:14px ;margin-bottom:15px; ">
<input type="checkbox" onchange="document.getElementById('result').type = this.checked ? 'text' : 'password'"> show or hide password
</div>
</p>
<p><input class="buttons" type="reset" value="Clear" >
<input class="buttons" type="button" value="Help" Onclick="help()" >
<input class="buttons btn" type="button" value="Copy" data-clipboard-action="copy" data-clipboard-target="#result" >
</p>
</form>