I have a javascript onclick function which is blocked by CSP. I tried to solve this by using a different syntax but it still is not working. This the new syntax I tried.
<div class="form">
<div class="title">Welcome</div>
<div class="subtitle">Open A Door</div>
<div class="input-container ic1">
<input id="old_key" class="input" type="text" placeholder="" />
<div class="cut"></div>
<div class="cut"></div>
<label for="firstname" class="placeholder">Enter Your Key</label>
</div>
<button type="text" class="submit">Unlock</button>
</form>
<script>
async function othername_2() {
console.log("Popup Touch Confirmed")
var input_2 = document.getElementById("old_key").value;
console.log(input_2);
}
</script>
How do I access this function ?