fixed the browser refreshing when the encode/decode button is pressed on base64

This commit is contained in:
Boof 2023-01-11 14:02:19 +01:00 committed by GitHub
parent f1d2010690
commit 9c9216cd8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,8 @@
<form> <form>
<label>Input data</label> <label>Input data</label>
<textarea value="" rows="3" id="input" required></textarea> <textarea value="" rows="3" id="input" required></textarea>
<button onclick="doencode();">Encode</button> <button type="button" onclick="doencode();">Encode</button>
<button onclick="dodecode();">Decode</button> <button type="button" onclick="dodecode();">Decode</button>
<label>Output</label> <label>Output</label>
<textarea id="output" disabled></textarea> <textarea id="output" disabled></textarea>
</form> </form>