Javascript Window.onload Not Working In Ios Captive Portal/network
I've got this bit of code in the header of a jsp file. For some reason, it runs fine on desktop and mobile browsers, but on the iOS captive portal, only the first alert is triggere
Solution 1:
I figured it out. Using this works...
<script type="text/javascript">
alert("first alert");
window.addEventListener('load',
function() {
alert("second alert");
}, false);
</script>
Post a Comment for "Javascript Window.onload Not Working In Ios Captive Portal/network"