1、SharePoint:
ExecuteOrDelayUntilScriptLoaded(test,"SP.js")
test: function name;
ExecuteOrDelayUntilScriptLoaded: please see http://msdn.microsoft.com/en-us/library/ff411788.aspx.
2、html:
<script language="javascript" type="text/javascript">
$(window).bind("load", function () {
var timeout = setTimeout(function () {
alert(1);
}
}, 0);
});
</script>
var timeout = setTimeout(function () {
alert(1);
}
}, 0);
});
</script>