目前我用的是,frameset 的 onload:

<frameset onload="OnFramesetLoad()">

 

其他寫法:(皆未確認過)

(1)

document.addEventListener('DOMContentLoaded', function() {
   // your code here
}, false);

(2)

$(document).ready(function(){
// your code
});

 

參考:call a function after complete page load

 

arrow
arrow

    Robert 發表在 痞客邦 留言(0) 人氣()