Skip to content

Instantly share code, notes, and snippets.

Created May 27, 2015 19:12
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 anonymous/0c311ebc3b3f64f9c2c0 to your computer and use it in GitHub Desktop.
Save anonymous/0c311ebc3b3f64f9c2c0 to your computer and use it in GitHub Desktop.
Wann wird Javascript ausgeführt?
<!doctype html>
<html>
<head>
<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