Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question

How do I do this inn JavaScript for Project 1-3? Any help would be appreciated!

**Hands-On Project Instructions:**

Follow the steps below to complete your coding project.

1. **Open the HTML File:**
   - Use your code editor to open `project01-03_txt.html` from the `js01 ► project03` folder.
   - Enter your name and the date in the comment section of the document and save it as `project01-03.html`.

2. **Locate the Input Element:**
   - Scroll down to the bottom of the file and locate the input element for the Submit button.

3. **Add Onclick Event Handler:**
   - Add an `onclick` event handler to the `<input>` tag that changes the `innerHTML` value of the page element with the id `submitMsg` to the text message `Thank you for your order`.
   - **Note:** The entire JavaScript expression should be enclosed within a set of double quotation marks, but the id and the text message should be enclosed within single quotes.

4. **Save and Test Your Changes:**
   - Save your changes to the file and then open `project01-03.html` in your web browser.
   - Click the Submit button and verify that the text "Thank you for your order" appears at the bottom of the page.

---

**Hands-On Project 1-4:**

In this chapter, you learned how to dynamically change an image using the `getElementById('id')` `src` expression along with... (content continues with the next steps or instructions).

---

This instructional guide will help you effectively add JavaScript interactivity to a web page. Follow these steps closely for successful completion of your Hands-On Project.
expand button
Transcribed Image Text:**Hands-On Project Instructions:** Follow the steps below to complete your coding project. 1. **Open the HTML File:** - Use your code editor to open `project01-03_txt.html` from the `js01 ► project03` folder. - Enter your name and the date in the comment section of the document and save it as `project01-03.html`. 2. **Locate the Input Element:** - Scroll down to the bottom of the file and locate the input element for the Submit button. 3. **Add Onclick Event Handler:** - Add an `onclick` event handler to the `<input>` tag that changes the `innerHTML` value of the page element with the id `submitMsg` to the text message `Thank you for your order`. - **Note:** The entire JavaScript expression should be enclosed within a set of double quotation marks, but the id and the text message should be enclosed within single quotes. 4. **Save and Test Your Changes:** - Save your changes to the file and then open `project01-03.html` in your web browser. - Click the Submit button and verify that the text "Thank you for your order" appears at the bottom of the page. --- **Hands-On Project 1-4:** In this chapter, you learned how to dynamically change an image using the `getElementById('id')` `src` expression along with... (content continues with the next steps or instructions). --- This instructional guide will help you effectively add JavaScript interactivity to a web page. Follow these steps closely for successful completion of your Hands-On Project.
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education