JS

JavaScript adds animation and interactivity to web pages. Most sites don't allow JavaScript since it can be used for nefarious purposes. Neocities is one of the websites that allow JS.

For JS to work, it needs to be added in a script tag. I recommend putting the script tag at the bottom of the website to keep it all in one place.




Alert button

A pop up message appears when a button is pressed.

Change background color

This changes the page background color when someone clicks a button. JavaScript can be used to change CSS properties.

Change text

This changes the text on the page when a button is clicked. Who knew!

Click me!

Hide and show

This hides or shows text when a button is clicked.

Tuck me away

Change image

This changes an image when a button is clicked.

example image

Random number

This creates a random number when a button is clicked.

Your number will appear here.