Forum Moderators: open
I have the following code in my file.
window.onfocus =window.document.getElementById('btn').click();
but I get the error:
window.document.getElementById("btn") is null
but, I checked and the there's no spelling mistakes and wel of coz the button do exist :)
pls help me out to find wats wron. thanks in advance!