how to find exist file from a directory(client side) - TechRepublic
Question
March 13, 2008 at 09:55 AM
teamhut

how to find exist file from a directory(client side)

by teamhut . Updated 18 years, 3 months ago

hi all
am new to javascript, i need help how to locate a file from the directory(at client side)

function openwindow(name)
{
var file = “pages/” + name + “.htm”;
if (file = exists)
window.open(file,”mywindow”,status=1,scrollbars=1,width=750,height=550″);
else
alert “file not found”
}
please if anyone knows suggest….

This discussion is locked

All Comments