How to include the HTML tag inside the javascript tags?
Answers were Sorted based on User's Feedback
Answer / r.deepe
by using document.writeln() function we can use HTML tags
Is This Answer Correct ? | 5 Yes | 1 No |
<script type="text/javascript">
document.write("<h1>Hi</h1>");
</script>
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kapil
write html tag within double courts to include html in java script
Is This Answer Correct ? | 4 Yes | 9 No |
How do I link an external javascript file to html?
How to read a cookie using javascript?
What is the reason for wrapping the entire content of a javascript source file in a function book?
How to embed javascript in a web page?
Is jquery easier than javascript?
When do we use JSON.stringify()?
What is the use of math object in javascript?
How can a particular frame be targeted, from a hyperlink, in javascript?
How to find radio button selection when a form is submitted?
what is the extension of java script.
Which keywords are used to handle exceptions?
How to reload a page using JavaScript?