Create an event that alerts the user before leaving the page

Assignment Help Computer Engineering
Reference no: EM133720794

Assignment: JavaScript Masterpiece Course Project

Your Course Project is your masterpiece. It will be a culmination of all the JavaScript skills that you have learned throughout the semester. This is your opportunity to show your creativity and create a website that expresses your imagination. It is also an ideal time to create a website that you can add to your portfolio for showcasing your talent to prospective employers.

For your project, you will create a website that has a theme of your choosing. It can benefit a real or imaginary business, non-profit organization, or showcase your hobbies. The theme that you choose must be used for all labs in addition to the midterm submission and the final submission at the end of the semester. Describe your theme in an HTML comment.For this lab, you will:

Create a new HTML file separate from previous labs.

Use appropriate prefixes with all variables Variable TypePrefix Example string str str UserName integer int int Height Boolean bol bol Has Books float flt flt Account Balance page elementelel Output

A. Create and use a function that has parameters and either returns a value or sends output to a page element.

B. Create and use an array.

Use at least two arithmetic operators.
Use at least one string method.
Create and use an object that has properties and methods.
Use a Math Object method.
Use a Date Object method.
Use the keyword this.

Initialize your object with values, call each of the methods, and output the modified values.

Demonstrate the use of an if/else construct or switch statement with at least three case values and a default code block.

Demonstrate the use of at least two comparison operators:

==
!=
===
!==
>
<
>=
<=
Demonstrate the use of at least one of the following logical operators:
&&
||
!

Use parseInt() to convert a string to an integer.
Use a loop.
Use a Truthy or a Falsy value in a condition without a comparison operator.
Use textContent to change the value of a page element's content.
Use innerHTML to change a page element or add a new one.
Select page elements by class name.
Select a page element by id.

Remove a page element.

A. Add a class to an existing page element.

B. Use an event listener with parameters to produce visible results on the page when the user clicks a page element.

C. Demonstrate Event Bubbling.

D. After demonstrating Event Bubbling, use a method to stop Event Bubbling.

E. Use the Event Object in a function or method.

F. Create two focus/blur or focusin/focusout events that produce visible results on the page.

G. Create at least two different mouse events that produce visible results on the page.

H. Create at least one keyboard event that produces visible results on the page.

Create a form event that produces visible results on the page.

A. Demonstrate a mutation event that produces visible results on the page.

B. Create an event that alerts the user before leaving the page.

Reference no: EM133720794

Questions Cloud

Developed depressive symptoms : The patient is a 13-year-old girl who developed depressive symptoms over a period of 6 months, with depressed mood, excessive sleepiness
Discuss a specific change theory model : Leadership and Management in Professional Nursing Practice - Discuss a specific change theory model that could be used to facilitate change.
Evaluate the validity and reliability and generalizability : What could the next researcher do given the limitations of this study? Evaluate the validity and reliability and generalizability of the study.
Watch video about how to be an antiracist : Watch this six-minute video about how to be an antiracist. When you watch, please consider how you talk to others who do not share your racial-ethnic identity.
Create an event that alerts the user before leaving the page : Demonstrate a mutation event that produces visible results on the page. Create an event that alerts the user before leaving the page.
Diagnosed with early-stage Alzheimer : Suzie, 83 year old female, has been a resident in Harmony Care for two and half years. She moved to the centre after being diagnosed with early-stage Alzheimer.
Recovery support specialist inside the jail : The article Recovery Support Specialist Inside the Jail: A Program Description of Treatment Engagement for opioid use disorder the objective
What device do you use to access the internet most often : What device do you use to access the Internet most often? What is Fear of Missing Out (FOMO) and how has social media played a part in it?
What mistakes did hudson make : What mistakes did Hudson make? What are the lessons to be learned from this case - He was confident that he had the requisite technical expertise to excel

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd