Add multiple [removed] events

前端 未结 8 1814
说谎
说谎 2020-12-02 10:31

In my ASP.NET User Control I\'m adding some JavaScript to the window.onload event:

if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType         


        
8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 11:08

    Try this:

    window.attachEvent("onload", myOtherFunctionToCall);
    
    function myOtherFunctionToCall() {
        // do something
    }
    

    edit: hey, I was just getting ready to log in with Firefox and reformat this myself! Still doesn't seem to format code for me with IE7.

提交回复
热议问题