A browser incompatibility problem encountered in the project:
In IE and Firefox, directly call the child window's js function directly in the parent window of the ifame framework page with the name of the child window, but not in Chrome.
The code copy is as follows:
<frameset rows="108,*,30" frameSpacing="0" frameBorder="0">
<frame name="header" scrolling="no" noresize src="base/header" />
<frame id="memuMain" name="main" scrolling="no" noresize src="${ctx}/index.jsp" />
<frame name="footer" scrolling="no" noresize src="base/footer" />
<noframes>
<body>
<p>This web page uses frames, but your browser does not support frames. </p>
</body>
</noframes>
</frameset>
In IE and Firefox, you can write this:
The code copy is as follows:
function changeMenu(menu_id){
header.window.changeMenu(menu_id);
}
Or:
The code copy is as follows:
function changeMenu(menu_id){
frames[0].changeMenu(menu_id);
}
It will be all right,
Only the second writing method can be used in Chrome, so the second writing method should be used when considering multiple browser compatibility issues.