-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathjbinfo.ijs
More file actions
37 lines (33 loc) · 822 Bytes
/
jbinfo.ijs
File metadata and controls
37 lines (33 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
NB. J HTTP Server - jbinfo app - show browswer info
coclass'jbinfo'
coinsert'jhs'
jev_get=: 3 : 0
'jbinfo'jhrx(getcss''),(getjs''),gethbs''
)
JS=: 0 : 0
document.onkeyup= kup;
function kup(ev)
{
var e=window.event||ev;
var t='key up';
t+= '\nchar : '+e.charCode;
t+= '\nkey : '+e.keyCode;
t+= '\nctrl : '+e.ctrlKey;
t+= '\nshift: '+e.shiftKey;
alert(t);
return true;
}
var b= "Browser info:<br><br>";
for(var pn in navigator)
{
b+= pn+": "+navigator[pn]+"<br>";
}
b+= "<br>Javascript info:<br><br>";
b+= "all: "+document.all+"<br>";
b+= "getElementById: "+document.getElementById+"<br>";
b+= "addEventListener: "+window.addEventListener+"<br>";
b+= "attachEvent: "+window.attachEvent+"<br>";
b+= "scrollTo: "+window.scrollTo+"<br>";
b+= "XMLHttpRequest: "+(new XMLHttpRequest())+'<br>';
document.write(b);
)