View Full Version : How can i get the filename from save as dialog box

06-16-2008, 05:04 AM

This is muthu, I need one help from you
I have create a jsp page which contains button, when i click the button, a new file dialog box will open and then i enter the file name, then i get the file name from the box through java script

whether it is possible in java script?

Could u please help me


Philip M
06-16-2008, 08:36 AM
Is this what you mean?

Enter the file name: <input type = "text" name = "fileid" id = "fileid" size = 20" onblur = "getName()">

<script type = "text/javascript">
function getName() {
var fn = document.getElementById("fileid").value
alert (fn);

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.