Wednesday, June 24, 2009

window.onload firefox,IE

        <script language='javascript'>    
            var browserName = navigator.appName;
            if (browserName == "Microsoft Internet Explorer") {    
                window.onload = function(){alert('IE Onload');}
            else {
                if (document.addEventListener){
                    document.addEventListener("DOMContentLoaded", function(){alert('Firefox Onload');}, false);
        replacement for    window.onload in Firefox


Ian.J.Gough said...

PPPerfect just what i was looking for and have been for the last few hours "window.onload firefox,IE"
All the best and thanks again,

Anonymous said...

I would like to exchange links with your site
Is this possible?

Creative Commons License
Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.