JS查看本地盘符是否存在
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<iframe id="c" src="file:///c:/"></iframe>
<iframe id="d" src="file:///d:/"></iframe>
<iframe id="e" src="file:///e:/"></iframe>
<iframe id="f" src="file:///f:/"></iframe>
<iframe id="w" src="file:///w:/"></iframe>
<div id="div">
哥找到了查看本地磁盘是否存在的方式,暂时只支持ie</br>
</div>
<script>
list = ["c","d","e","f","w"];
for(i=0;i<list.length;i++)
{
try{
document.getElementById("div").innerHTML+=window.frames[list[i]].document.title+list[i]+"盘存在</br>";
}catch(qqq){
document.getElementById("div").innerHTML+=list[i]+"盘不存在</br>";
}
}
</script>
</BODY>
</HTML>