I
icewalker
Hi
I have been trying to open a new window in Word/OO Writer with JS
using the following code (and numerous variations I could add...):
tw = window.open('about:blank','');
tw.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">');
tw.document.writeln('<HTML><HEAD>');
tw.document.writeln('Content-type: application/msword');
tw.document.writeln('</HEAD>');
tw.document.writeln('<BODY><FORM method="POST">');
tw.document.writeln('Hello earth');
tw.document.writeln('</FORM></BODY></HTML>');
The new window opens OK, but in the browser. What am I missing? Thank
you in advance.
I have been trying to open a new window in Word/OO Writer with JS
using the following code (and numerous variations I could add...):
tw = window.open('about:blank','');
tw.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">');
tw.document.writeln('<HTML><HEAD>');
tw.document.writeln('Content-type: application/msword');
tw.document.writeln('</HEAD>');
tw.document.writeln('<BODY><FORM method="POST">');
tw.document.writeln('Hello earth');
tw.document.writeln('</FORM></BODY></HTML>');
The new window opens OK, but in the browser. What am I missing? Thank
you in advance.