Question

Locked

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

By teamhut ·
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 conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Related Discussions

Related Forums