OpenWindow.document.write problem
- From: kamal <kamaljeet.lotuswin@xxxxxxxxx>
- Date: Sat, 9 Feb 2008 08:38:18 -0800 (PST)
i am facing a strange problem. please help me out with this.
the following code is working perfectly fine in Mozilla Firefox but in
Internet Explorer it is giving an error in the first
OpenWindow.document.write line itself.
function popup_msg_to_all_users() {
var str = "self.close();";
OpenWindow=window.open("hdfkhgkdfhgdfjkg", "newwin",
"height=260, width=360,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<TITLE>Send Message</
TITLE>")
OpenWindow.document.write("<script> function
submitAndClose() { if (!document.frm.title.value) { alert(\'Enter
Title.\'); return false; } else { document.frm.submit();
alert(\'Message Sent.\'); window.close(); }} <\/script>")
OpenWindow.document.write("<BODY bgcolor='#0066cc'>")
OpenWindow.document.write("<tr><td><font size='2'
face='verdana' color='white'><b>Type the message to send to all
syndicates</b></font></td></tr>")
OpenWindow.document.write("<br><textarea STYLE='font-
family: Verdana; font-size: 12px;' cols='50' rows='10' name='txt'>Type
Message Body Here.</textarea>")
OpenWindow.document.write("<input type='hidden'
value='GoSendMessageAllPopup' name='action'>")
OpenWindow.document.write("<input type='hidden' name
='syndicate_id' value='" + synd_id + "'>")
OpenWindow.document.write("<input type='button'
value='Send' name='btn' onClick='javascript: submitAndClose();'>")
OpenWindow.document.write("</form>")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
self.name="main"
}
basically the window is opening up but nothing is displayed inside
it. my IE version is 6.0
thanks in advance
.
- Follow-Ups:
- Re: OpenWindow.document.write problem
- From: Thomas 'PointedEars' Lahn
- Re: OpenWindow.document.write problem
- From: VK
- Re: OpenWindow.document.write problem
- From: Doug Gunnoe
- Re: OpenWindow.document.write problem
- From: Martin Honnen
- Re: OpenWindow.document.write problem
- Prev by Date: Re: execute js function
- Next by Date: Looping through Arrays - variable undefined?
- Previous by thread: How to display 'style'ed text in a textaea or... ???
- Next by thread: Re: OpenWindow.document.write problem
- Index(es):
Loading