Answer: We can write Javascript functions both in
<Head> section as well as in
<Body> section .
For Example:
<head>
<script type="text/javascript">
function alert_message()
{
alert("hello");
}
</script>
</head>
<body>
<script type="text/javascript">
function alert_message()
{
alert("hello");
}
</script>
</body>
Asked In: Many Interviews |
Alert Moderator