Skip to content

Gallelee/Assignment4_TTP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment4_TTP

Assignment #4: DOM Challenges II

  1. Create an HTML page with two buttons that argue with each other. When one button is clicked, the text "I'm right" should be placed next to it. When the other button is clicked, the text is replaced with, "No, I'm right!"

    • index.html
  2. Create an HTML page with a large element on the page that says "Don't hover over me" inside of it. When you hover over the element, send an alert to the user that says, "Hey, I told you not to hover over me!

    • index2.html
  3. Create an HTML page with a form. It should include inputs for a username, email, and password. Also a submit button.

    • index3.html
  4. In a Javascript file, write a program which checks the following things:

  • checks that the password is 12345678
  • if the password is incorrect, send an alert message
  • Your page should also include an h1 tag. If the information in the form is correct, have Javascript change the text in the h1.HTML page.
  1. Add a CSS stylesheet that styles all of your pages.

  2. BONUS: Create an HTML page with a form that asks the user to input the value of a sphere's radius. Write Javascript that gives them back the volume of the sphere. (There are many different ways to execute this. You can give the user information back in another input box on the page, as an alert, or any other way you can think of. You can look up how to use the Javascript Math object to simplify your calculations.)

About

Assignment #4: DOM Challenges II

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 53.2%
  • CSS 26.8%
  • JavaScript 20.0%