このJavaScript関数は、Vistaで実行されているマシンを除いて、試したすべてのマシンで機能します。この関数を呼び出していますonload
。これで何が悪いと思いますか。
function isePad() {
var epad;
epad = window.document.esCapture1.ConnectedDevice;
if (!epad) {
alert('Sorry epad either is not Connected or/and drivers are not installed');
}
}