Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Javascript
« Previous
Next »
If we don’t want the script to write page content, under which HTML tag should the JS tag be placeD?
Options
- < body>
- < head>
- Any of a and b above
- Both b and c above
CORRECT ANSWER : < body>
Discussion Board
wrong
The answer is wrong. The text will show up if the script is in the body (after the html it is attempting to write text to). Written text won't show if the script is in the because the html tags don't exist yet. All you have to do is test this:
Test
ajax rasputin 09-23-2016 01:28 PM
First I've heard of this
So you mean that if I write an innerHTML function, and the script is in the body, the code won't work because its not writing page content?
Greg Ledger 05-14-2015 06:50 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲