Home HTML Data Types DOM JavaScript JS Debugging

Hacks

  • Copy your HTML code from the HTML hacks. Write a Javascript snippet to switch the links of the two a tags when a button is pressed. Once they are switched, change the inner HTML of the top p tag to the word “switched!”



WikiHow To Change Button Color in HTML
StackOverflow Button Text Color Change

Above are some links to help you get started on your JS Basics Test journey!



WikiHow To Change Button Color in HTML
StackOverflow Button Text Color Change

Above are some links to help you get started on your JS Basics Test journey!

<button id=”buttonID”, onclick=”switchLinks()”>Click here to change something</button>

WikiHow To Change Button Color in HTML
StackOverflow Button Text Color Change


Above are some links to help you get started on your JS Basics Test journey!

<button id=”buttonID”, onclick=”switchLinks()”>Click here to change something</button>

WikiHow To Change Button Color in HTML
StackOverflow Button Text Color Change


Above are some links to help you get started on your JS Basics Test journey!