<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" > <title>Insert title here</title> <mce:script type="text/javascript"><!-- function saveword(){ var oWordApp=new ActiveXObject("Word.Application"); var oDocument=oWordApp.Documents.Open("D://light.doc"); oDocument.SaveAs("D://light.htm", 8); oWordApp.Quit(); } // --></mce:script> </HEAD> <BODY> <input type=button οnclick="saveword()" value=save> </BODY> </HTML> </textar