Question Locked
how to find exist file from a directory(client side)
0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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....