O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Changing an element's CSS style property

Now we will take a look at an example where we actually manipulate the DOM by changing an element's CSS style property. The user interface of this example consists of the image of the Isomorphic Gopher, and right below it are two buttons, as shown in Figure 3.11. The first button, when clicked, will show the Isomorphic Gopher image, if it is hidden. The second button, when clicked, will hide the Isomorphic Gopher image, if it is shown. Figure 3.11 shows the Isomorphic Gopher when it is visible: 

Figure 3.11: The user interface when the Isomorphic Gopher image is visible

Figure 3.12 depicts the user ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required