Skip to content

Instantly share code, notes, and snippets.

@luckyduck
Created May 27, 2015 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckyduck/34aa45a2bbbfdb063449 to your computer and use it in GitHub Desktop.
Save luckyduck/34aa45a2bbbfdb063449 to your computer and use it in GitHub Desktop.
Korrigiert
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Wann wird Javascript ausgeführt?</title>
</head>
<body>
<script type="text/javascript">
function meinJavascript() {
document.write("<p>Angeklickt!</p>");
}
</script>
<button type="button" onclick="meinJavascript();">
Klick mich
</button>
<script type="text/javascript">
document.write("Beim laden ausführen");
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment