function zoomIn1() { var outer = document.getElementById("outer"); outer.setAttribute("currentScale", 1.5); } function zoomIn2() { var outer = document.getElementById("outer"); outer.currentScale = 1.5; } function zoomIn3() {
In IE, zoomIn1 will work zoomIn2 and zoomIn3.
In Chrome, zoomIn1 will not do anything, zoomIn2 will enlarge the entire page, and zoomIn3 will do what you want. So, for your Microsoft exam, your answer is correct, but in real life: use the transform attribute as specified in zoomIn3.
hvk
source share