Select from following answers:- The <body> section
- Both the <head> section and the <body> section are correct
- The <head> section
- All Above
We can write any Javascript functions inside <head> as well as <body> tag.
For Ex:-
<head runat="server">
<title></title>
<script type="text/javascript">
function alert_msg()
{
}
</script>
</head>
//OR
<body>
<script type="text/javascript">
function alert_msg()
{
}
</script>
</body>
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator