Vidyalelo
JavaScript · Q60

Document Object Model And Event Handling

Programming · JavaScript · question 60

Q60

Which of the following property allows you to specify an element’s position with respect to the browser window?

A.
relative
B.
fixed
Answer
C.
static
D.
absolute

Answer: Option B

Solution

Answer: Option B
Solution:
The fixed value allows you to specify an element’s position with respect to the browser window. Elements with fixed positioning are always visible and do not scroll with the rest of the document. Like absolutely positioned elements, fixed-position elements are independent of all others and are not part of the document flow.