JavaScript Document write function

Document write function

<script language="JavaScript">
function print(msg) {
  document.write(msg, "<BR>");
}
print("samo test");
</script>