Below Code contain one executive Statement. Guess the Output of the Code.
<script type="text/javascript">
{
document.Write("<h1>This is a heading</h1>");
}
</script>
Question:Below Code contain one executive Statement. Guess the Output of the Code.
<script type="text/javascript">
{
document.Write("<h1>This is a heading</h1>");
}
</script>
1."This is a heading" will be printed in H1 heading
2.Just "This is a heading" will be printed because HTML tags are not allowed
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!