關於我

就讀逢甲大學
正在修java


2015年3月12日 星期四

javascript

1.程式碼
<html>
<head>
<title> The First Example: Hello, World </title>
</head>
<body>
<h2> This line is HTML </h2>

<script language="JavaScript">
<!--
document.write("Hello, World.This sentence is written using JavaScript.");
// Text on the right of 2 slashes is comment
/* This is comment
that occur more than 1 line
*/
//-->
</script>
<noscript>
Sorry, but your browser doesn't run JavaScript.
</noscript>

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



將此貼在wordpad

2..改檔名與副檔名htm

3.程式碼改名字

<html>

<head>

<title> The First Example: Hello, World </title>

</head>

<body>

<h2> This line is HTML </h2>


<script language="JavaScript">

<!--

document.write("Hello, 鍾怡君.This sentence is written using JavaScript.");

// Text on the right of 2 slashes is comment

/* This is comment

that occur more than 1 line

*/

//-->

</script>

<noscript>

Sorry, but your browser doesn't run JavaScript.

</noscript>




<h2> This line is HTML </h2>

</body>

</html>


4.超連結

file:///C:/myjava/index.htm



沒有留言:

張貼留言