Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
JohnAdemoye.html Correction on Second Ajax Request and Interactive Web Pages (#40) Oct 29, 2019
Oluwaseyi.html Correction on Second Ajax Request and Interactive Web Pages (#40) Oct 29, 2019

Project JavaScript N1 Interactive Web Pages

Topics: The document keyword , Tweak an Element , Select and Modify Elements , Style an element , Create and Insert Elements , Remove an Element , Interactivity with onclick , Traversing the DOM , What is an Event? , "Firing" Events , Event Handler Registration , Adding Event Handlers , Removing Event Handlers , Event Object Properties , Event Types , Mouse Events , Keyboard Events

Project Title: Lucky Numbers

  1. Create a html file with your name like john.html
  2. Add current code to that file:
<!DOCTYPE html>
      // your code here
  1. Create a h1 with "Lucky Number" text.

  2. Create a button set caption to lucky number. When user click on it alert a random number between 1 to 10.

  3. Create another button set caption to Guess Number. It prompt a number from user and check if it equal to lucky number alert "You won" else aler "You lose."

  4. After 10 seconds of loading page, show a small banner at the top of the page and show this message: " You are winner . Do not give up" Put a close button next to banner and remove the banner when user click on it.

Want to get reviewed?

Send Pull Request. Check how to deliver your code:

Need help?

Download Learn JavaScript eBook from

You can’t perform that action at this time.