Skip to content Skip to sidebar Skip to footer

Page Throws JavaScript Runtime Error: 'Function Name' Is Undefined. IE10 Only

While working on IE10, I have found that the JavaScript functions which are registered or called from the code behind are throwing exception: 'JavaScript runtime error: 'function

Solution 1:

Try placing the script at the end of the page using RegisterClientScriptBlock and call it.

   Page.ClientScript.RegisterClientScriptBlock("showGCAlert", 
     "<script type=\"text/javascript\">ShowGCAlert();</script>");

Post a Comment for "Page Throws JavaScript Runtime Error: 'Function Name' Is Undefined. IE10 Only"