Exercice HTML corrigé identification du navigateur

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
38
39
40
41
42
43
44
45
<html>
 
<head>
 
<title>Identification du navigateur</title>
 
</head>
 
<body>
 
<H1>Identification du navigateur</H1>
 
<HR>
 
<P>
 
L'objet <B>navigator</B> contient les informations suivantes sur votre navigateur :
 
</P>
 
<UL>
 
<SCRIPT LANGUAGE="JavaScript">
 
document.write("<LI><B>Nom de code :</B> " + navigator.appCodeName);
 
document.write("<LI><B>Nom de l'application :</B> " + navigator.appName);
 
document.write("<LI><B>Numéro de version :</B> " + navigator.appVersion);
 
document.write("<LI><B>« User Agent » :</B> " + navigator.userAgent);
 
document.write("<LI><B>Langue :</B> " + navigator.language);
 
document.write("<LI><B>Plate-forme :</B> " + navigator.platform);
 
</SCRIPT>
 
</UL>
 
<HR>
 
</body>
 
</html>

Télécharger aussi :

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

1

Besoin d'aide ?