Click to See Complete Forum and Search --> : javascript


Rajashekar
March 18th, 2005, 05:43 AM
Here in xyz.jsp , iam calling the javascript function a popped up
window gets up and displays something. This code is working fine with
Internet Explorer but with netscape navogator 7.0 it not working .
another thing is that it is working with netscape navogator 7.2, one
thing i could found is, the problem is with the line
doc=newWin.document, and the error it is saying is "problem with
property, " , i want to know what the property to be added so that it gets
worked , plz do it for me .
Thanx in advance



abc.js //javascript file

var newWin
function template()
{
newWin=window.open("","","height=180, width=365, scrollbars=no,
status=no,resizeable=no,modal=yes");
doc=newWin.document;
with(doc)
{
writeln("<HTML><HEAD><TITLE>Save </TITLE>");
writeln(" <body> hello</body> </html>");
}

doc.close();




xyz.jsp

<html>
<head></head>
<body>
<script language="javascript" src="/EntlWeb/jsfiles/coitjsp.js"></script>
<A href="javascript: template();" > Submit</A>
</body>
</html>