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('ab out:blank','');
tw.document.wri teln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">');
tw.document.wri teln('<HTML><HE AD>');
tw.document.wri teln('Content-type: application/msword');
tw.document.wri teln('</HEAD>');
tw.document.wri teln('<BODY><FO RM method="POST">' );
tw.document.wri teln('Hello earth');
tw.document.wri teln('</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('ab out:blank','');
tw.document.wri teln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">');
tw.document.wri teln('<HTML><HE AD>');
tw.document.wri teln('Content-type: application/msword');
tw.document.wri teln('</HEAD>');
tw.document.wri teln('<BODY><FO RM method="POST">' );
tw.document.wri teln('Hello earth');
tw.document.wri teln('</FORM></BODY></HTML>');
The new window opens OK, but in the browser. What am I missing? Thank
you in advance.
Comment