LABS
directory.Add Songs
button.
handleButtonClick
function to post an alert when the button gets pushed (pages 90-93).
alert
function to complain if no song name has been entered.
li
element to hold this song name (pages 97-99).link
to playlist.css in playlist.html and
reload your browser page to see the effect.
Examine the source for this CSS file.
LABS
directory to link
to the playlist.html page in a LAB17
directory.
playlist
form to include two input fields:
one for the song's title and another one for its author.
prompt
function to get values for these fields, if the user leaves one (or both) blank.span
element to contain the song title.class
property with value title. (Hint: use the
setAttribute
method.)
span
element (with class
author) for the author field.
span
elements (and some appropriate text between them)
as children of the li
element.
Always turn off your computer and screen before leaving the room.