Last active
August 29, 2015 13:56
-
-
Save mfrancois/9076206 to your computer and use it in GitHub Desktop.
Tutorial javascript step_0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.getElementById('hello').innerHTML = "Hello World !"; | |
| document.getElementById('hello').addEventListener('click',function(event){ | |
| event.preventDefault(); | |
| event.target.style.backgroundColor = "#00FFFF"; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.addEventListener('load',function(){ | |
| document.getElementById('hello').innerHTML = "Hello World !"; | |
| document.getElementById('hello').addEventListener('click', function (event) { | |
| event.preventDefault(); | |
| event.target.style.backgroundColor = "#00FFFF"; | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Tutorial Javascript</title> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| alert('Hello World !'); | |
| </script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Tutorial Javascript</title> | |
| <script type="text/javascript" src="app.js"></script> | |
| </head> | |
| <body> | |
| <div id="hello"></div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment