en.javascript.info/4-ajax/12-ajax-iframe/date-activex.view/index.html
2015-02-27 13:21:58 +03:00

29 lines
411 B
HTML

<!DOCTYPE html>
<html>
<body>
<script src="activex.js"></script>
<script>
function ok(result) {
alert('result: ' + result);
}
function fail() {
alert('fail');
}
function go() {
if (!("ActiveXObject" in window)) {
alert("Только Internet Explorer");
return;
}
iframeActiveXGet("server", ok, fail);
}
</script>
<button onclick="go()">iframeActiveXGet server date</button>
</body>
</html>