gecko-dev/dom/browser-element/mochitest/file_browserElement_SetVisi...

19 строки
316 B
HTML

<html>
<body>
<script>
var name = location.search.substring(1);
addEventListener('load', function() {
setTimeout(function() {
alert(name + ':ready');
}, 0);
});
addEventListener('visibilitychange', function() {
alert(name + ':' + (document.hidden ? 'hidden' : 'visible'));
});
</script>
</body>
</html>