showmodaldialog function in ie8
i have written a showmodaldialog()
functio开发者_如何学Pythonn in a jsp file and its working well in Firefox but in ie8 its now working,my code is here :
<-----a.jsp------>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Step Editor</title>
<script language=javascript>
function test() {
var retvalue;
retvalue = window.showModalDialog("index.jsp");
}
</script>
</head>
<body>
<input type=button value=Activity onclick=test()>
</body>
</html>
<--------->
in the above code a.jsp is parent window which is calling index.jsp as child window.
<----index.jsp----->
use "<base target="_self" />"
in meta tag
精彩评论