I am using following code to execute some statements after page load.(我正在使用以下代码在页面加载后执行一些语句。)
<script type="text/javascript">
window.onload = function () {
newInvite();
document.ag.src="b.jpg";
}
</script>
But this code does not work properly.(但是此代码无法正常工作。) The function is called even if some images or elements are loading.(即使正在加载某些图像或元素,也会调用该函数。) What I want is to call the function the the page is loaded completely.(我想要的是调用页面完全加载的函数。)
ask by Neeraj Kumar translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…