<a onclick=" window.open('C:/Documents and Settings/palanikumar.r/Desktop/Doc.bat','remarks','height=600,width=915,left=50,top=50')" ><input type="button" value="start" onClick="startclock('')"></a>
see, in the above coding i am using button to open a document file.
im opening it through the batch file..
the batch file contains
@echo off
c:
cd\
cd jdk1.5.0_05\bin
javac Doc.java
java Doc
Doc.java is a java program through this java program i am opening a word application
import java.io.*;
public class Doc
{
public static void main(String[] str)throws IOException
{
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + "C:\\Program Files\\Microsoft Office\\OFFICE11\\WINWORD.exe");
}
}
when i clicking the button in the html file the batch file runs first and it calls the java program and then the word application open.
And my problem is when i am clicking the button the batch program is called at that time the file download dialog box is opening.
i dont want to open the dialogue box.
if possible pls help.