1.

Which is the property used to position the object in the left of the screen?(a) object.position = left(b) object = position.left(c) object.style.left(d) object.shiftleftThe question was asked by my school principal while I was bunking the class.This interesting question is from Animation topic in portion Caching, Debugging and Animation of JavaScript

Answer»

The correct choice is (c) object.style.left

To explain: The property object.style.left = distance in pixels or points sets distance from left EDGE of the screen. This property SPECIFIES the left position of the element including padding, scrollbar, BORDER and margin. Whereas the setTimeout(FUNCTION, duration) calls function after duration milliseconds from now.



Discussion

No Comment Found

Related InterviewSolutions