Tutorial javascript step_0
<!DOCTYPE html>
<html>
<head>
<title>Tutorial Javascript</title>
<script type="text/javascript" src="app.js"></script>
</head>
<body>
<div id="hello"></div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Tutorial Javascript</title>
<script type="text/javascript" src="app.js"></script>
</head>
<body>
<div id="hello"></div>
<script type="text/javascript">
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Tutorial Javascript</title>
</head>
<body>
<div id="hello"></div>
<script type="text/javascript">
document.getElementById('hello').innerHTML = "Hello World !";
document.getElementById('hello').addEventListener('click',function(event){
event.preventDefault();
event.target.style.backgroundColor = "#00FFFF";
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Tutorial Javascript</title>
</head>
<body>
<div id="hello"></div>
<script type="text/javascript">
document.getElementById('hello').innerHTML = "Hello World !";
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Tutorial Javascript</title>
</head>
<body>
<script type="text/javascript">
alert('Hello World !');
</script>
</body>
</html>
window.addEventListener('load',function(){
document.getElementById('hello').innerHTML = "Hello World !";
document.getElementById('hello').addEventListener('click', function (event) {
event.preventDefault();
event.target.style.backgroundColor = "#00FFFF";
});
});
document.getElementById('hello').innerHTML = "Hello World !";
document.getElementById('hello').addEventListener('click',function(event){
event.preventDefault();
event.target.style.backgroundColor = "#00FFFF";
});