S
ShayHk
Hi.. I want to open a new window in javascript
the new window will contain an xml message.. can I do this?
I dont want to use a xHtml file to contain the message
I just want to open the new window with the message insid of it.
for example:
xmlMessage = "<root><abc>123</abc></root>";
openXHTMLwindow(xmlMessage);
function openXHTMLwindow(xmlMessage)
{
OpenWindow=window.open("", "newwin",
"height=400,menubar=no,modal=yes'");
OpenWindow.document.write("<TITLE>Title Goes Here</TITLE>")
OpenWindow.document.write("<BODY")
OpenWindow.document.write(xmlMessage)
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
OpenWindow.document.close()
}
the new window will contain an xml message.. can I do this?
I dont want to use a xHtml file to contain the message
I just want to open the new window with the message insid of it.
for example:
xmlMessage = "<root><abc>123</abc></root>";
openXHTMLwindow(xmlMessage);
function openXHTMLwindow(xmlMessage)
{
OpenWindow=window.open("", "newwin",
"height=400,menubar=no,modal=yes'");
OpenWindow.document.write("<TITLE>Title Goes Here</TITLE>")
OpenWindow.document.write("<BODY")
OpenWindow.document.write(xmlMessage)
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
OpenWindow.document.close()
}