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 |
What does javascript do?
How do you change the style/class on any element using javascript?
What is a module in javascript?
Is it possible to break javascript code into several lines?
What are global variables in javascript?
What does the operator do in javascript?
What is scope variable in javascript?
How to access an external javascript file that is stored externally and not embedded?
name any two javascript functions which are used to convert nonnumeric values into numbers?
Difference between Client side JavaScript and Server side JavaScript?
How to determine the state of a checkbox using javascript?
Is there automatic type conversion in JavaScript?