Sahar
asked on
IE5 settings
I run this code on my home computer and it works fine:
<HTML>
<HEAD>
<SCRIPT Language="JavaScript">
function MyWindow() {
contents=
'<title>Changing password</title>'+
'<body bgcolor="#5B,00,00">'+
'<form method="POST" action="../filingsystem.ex e/pass">'+
'<p><font color="#000080"><input type="text" name="edpassword" size="20">'+
' </font><b><font size="3" color="#E6E600">:Old Password: </font></b></p>'+
' <p><font color="#E6E600"><input type="text" name="ednewpass" size="20">'+
' <b><font size="3" >Password: '+
' CaIIiIE</font></b></font>< /p>'+
'<p><font color="#E6E600"><input type="text" name="ednewpass" size="20">'+
'<b><font size="3">:Confirm '+
' CaIIiIE</font></b></font>< /p>'+
' <p><input type="submit" value="Submit" name="B1"></p>'+
'</form>'+
'</body>';
options = "toolbar=0,status=0,menuba r=0,scroll bars=0," +
"resizable=0,width=400,hei ght=200";
newwindow=new window.open("","mywindow", options);
newwindow.document.write(c ontents);
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="form1">
<INPUT TYPE=Button VALUE="Change password" onClick="MyWindow()">
</FORM>
</BODY>
</HTML>
My home computer: Win Me, but here at work (Win2k Prof) does not work ot gives me error on this line:
newwindow.document.write(c ontents);
Any idea what is worng in my IE settings
with my thanks
Sahar Elsadig
<HTML>
<HEAD>
<SCRIPT Language="JavaScript">
function MyWindow() {
contents=
'<title>Changing password</title>'+
'<body bgcolor="#5B,00,00">'+
'<form method="POST" action="../filingsystem.ex
'<p><font color="#000080"><input type="text" name="edpassword" size="20">'+
' </font><b><font size="3" color="#E6E600">:Old Password: </font></b></p>'+
' <p><font color="#E6E600"><input type="text" name="ednewpass" size="20">'+
' <b><font size="3" >Password: '+
' CaIIiIE</font></b></font><
'<p><font color="#E6E600"><input type="text" name="ednewpass" size="20">'+
'<b><font size="3">:Confirm '+
' CaIIiIE</font></b></font><
' <p><input type="submit" value="Submit" name="B1"></p>'+
'</form>'+
'</body>';
options = "toolbar=0,status=0,menuba
"resizable=0,width=400,hei
newwindow=new window.open("","mywindow",
newwindow.document.write(c
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="form1">
<INPUT TYPE=Button VALUE="Change password" onClick="MyWindow()">
</FORM>
</BODY>
</HTML>
My home computer: Win Me, but here at work (Win2k Prof) does not work ot gives me error on this line:
newwindow.document.write(c
Any idea what is worng in my IE settings
with my thanks
Sahar Elsadig
ASKER
I have tried your solution CJ_S ,but it doesnot work
could I have other solutions?
could I have other solutions?
ASKER
I have tried your solution CJ_S ,but it doesnot work
could I have other solutions?
could I have other solutions?
Works perfect once you get the "new" out of it...at least it does for me (just checked to be sure).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
newwindow.document.write(c