HTML and JavaScriptWriting a function
<script type="text/javascript">
  //code
</script>