jQuery(window).load() not working properly in IE, especially in IE 8 and below. I need to call one method after loading the window completely.
But in IE the window shows after executing the function given in jQuery(window).load() also.
.
.
.
.
</body>
<script language="javascript">
jQuery(window).load(function(){
renderEditNView();
});
</script>
</html>
Even an alert within the load method shows before the window loads. How will I fix it?
document.readynot good for you?$(document).readyinstead ofjQuery(window).loadand see if it helps$(document).ready(function(){ /* code */});and you can call any dom element from within the /*code*/ in the page then it is working properly, but you might have a different expectation for the functionality in your mind ,, it is not for after loading the contetns data, but rather the document's elements, or the window it self if it is shown in case of$(window).ready..