close
[JavaScript]如何使用JavaScript

使用方式:

<Script type ="text/javascript">
程式碼…
</Script>

document.write();是將字串輸出顯示在頁面中

例:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=BIG5">
<title>第一支javaScript</title>
</head>
<body>
<h2>document.write用法</h2>
<Script type ="text/javascript">
document.write("Hello world!!");
</Script>
</body>
</html>

參考
w3schools













其它文章
arrow
arrow
    全站熱搜

    PG Levin Li 發表在 痞客邦 留言(0) 人氣()