Can you write HTML tags inside the JavaScript code as shown below? <script type=
ID: 3544059 • Letter: C
Question
Can you write HTML tags inside the JavaScript code as shown below?
<script type="text/javascript">
document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
</script>
a) No
b) Yes
c) Impossible
) Which feature is supported in MSIE 3.x?
a) split()
b) document.clear()
c) join()
d) charAt()
) How to speicfy the color of the hypertext links with JavaScript?
a) document.linkColor="#00FF00";
b) document.LColor="#00FF00";
c) document.LinkC="#00FF00";
d) document.hyperTextLink="#00FF00":
52) What will be the output of following JavaScript
Explanation / Answer
b
d
a
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.