0
    public void DisplayIndexPage(PrintWriter out, String htmlPath)
        {
        <html>
        <head>
        <title>Test IE 10 </title>
        <SCRIPT LANGUAGE = JavaScript>
        function hintPopUp()
        {
        if (navigator.appName == "Netscape")
        {   
        alert("Please install Internet Explorer");
        }
        }
        </SCRIPT>
        </head>
        <frameset cols="192,*" border=0 frameborder=0>
        <frame name="menu" src="some java file 1" noresize >
        <frameset rows="55,50,*" border=0 frameborder=0>
        <frame name="banner" scrolling="no" noresize src="/IE10/header.html"> 
        <frame name="bottom" scrolling="no" noresize src="JAVA file 2"> 
        <frame name="main" src="/IE10/main.html"> 
        </frameset>
        <noframes>
        <body onLoad="hintPopUp();"> 
        <p>This page uses frames, but your browser doesn't support them.</p>
        </body>
        </noframes>
        </frameset>
        </html>
}

我在 servlet(使用 out.println)用户定义的方法中编写了上述代码,然后在 doPost 方法中调用此方法。在 IE10 中访问此页面时,会在浏览器中打印源代码。该网页在以前的 IE 版本中运行良好。

4

1 回答 1

0

框架/框架集是 IE10 的问题。出于某种原因,它不支持它,但这里有一个修复链接:http ://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx

于 2013-07-08T13:58:44.173 回答