I have a form and two buttons:
<input type="button" name="btn" onclick="a()" value="--->"><br>
<input type="button" name="btn" onclick="b()" value="<---">
In a javascript.js
file I have:
function a(){
console.log("a");
}
function b(){
console.log("b");
}
I want to call function (just when I click buttons) but when document it is fully loaded. how can I do?