2015年3月20日 星期五

3/20 javascript 九九乘法表

<html>
<head>
<title> The First Example: Hello, World </title>
</head>
<body>
<h2> This line is HTML </h2>

<script language="JavaScript">
document.write("hello!!");
for(i=1;i<=10;i++)
{
document.write("<BR>"+i);
}
document.write("<BR>");

for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
document.write(i*j);
}
document.write("<BR>");
}
</script>
<noscript>
Sorry, but your browser doesn't run JavaScript.
</noscript>

<h2> This line is HTML </h2>
</body>
</html>

0 個意見:

張貼留言

訂閱 張貼留言 [Atom]

<< 首頁