<script type="text/javascript">
document.write("Hello World!!");
</script>
|
<script>
for(var i=0; i<5; i++)
{ document.write("i の値:" + i + "<br>\n");
}
</script>
|
<html>
<head>
<title>Sample</title>
</head>
<body>
<script type="text/javascript">
document.write("Hello World!!");
</script>
</body>
</html>
|
<script type="text/javascript">
<!--
document.write("Hello!!");
// -->
</script>
|
<script language="JavaScript">
<!--
document.write("Hello!!");
// -->
</script>
|
<script>
document.write("Hello!!");
</script>
|
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>JavaScript Sample</title> </head> <body> : <input type="button" value="OK" onclick="~"> : </body> </html> |
<meta charset="UTF-8"> |
![]()