IE10中的网页显示问题

时间:2013-07-08 13:53:30

标签: html servlets internet-explorer-10 frames frameset

    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版本中运行良好。

1 个答案:

答案 0 :(得分:0)

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