Ich arbeite an einer Chrome-Erweiterung für meine Grad-Projekt versucht, einen Passwort-Manager Ich habe Passwort-Generator, aber das große Problem, dass Broweraction onsubmit oder nicht unterstützt Onclick ich versuche, so etwas wie onepassword und Lastpass-Erweiterungen zu erstellen, damit ich frage mich, wie der der Generator in der broweraction arbeitetWie ersetze onsubmit/onclick für Password Generator Chrome Extension
<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>