JavaScript 공부

Programming/Web 2012. 8. 27. 16:47

출처: http://www.w3schools.com/js/default.asp


<!DOCTYPE html>
<html>
<head>
<script>
function displayDate()
{
//document.getElementById("demo").innerHTML=Date();
document.getElementById("demo").innerHTML="Test";
}
</script>
</head>
<body>

<h1>My First JavaScript</h1>
<p id="demo">This is a paragraph.</p>

<button type="button" onclick="displayDate()">Display Date</button>

</body>
</html>


Posted by 세모아
,