Skip to content

Instantly share code, notes, and snippets.

@murilomothsin
Created February 20, 2016 05:18
Show Gist options
  • Save murilomothsin/45ebec2684bc81fe8d49 to your computer and use it in GitHub Desktop.
Save murilomothsin/45ebec2684bc81fe8d49 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<script>
window.onload = function () {
document.getElementById("hello").addEventListener("click", function () {
alert("Hello World!");
});
};
</script>
</head>
<body>
<noscript>
<div style="color: red;">Seu navegador não suporta JavaScript ou ele está desabilitado. </div>
</noscript>
<button id="hello">Dizer "Olá"</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment