Sedang Disiapkan

Simple Javascript

1st -Create two html pages. The first page is the order entry page (call it [url removed, login to view]) where user information such as name, phone #, address, and quantity of pizza’s to order is collected. Do not worry about any input validation here, which is not the point of this exercise. It also has an order button (not a submit button as it’ll then try to submit to a page) that opens up a popup window when the user clicks on it (call it [url removed, login to view]).

The popup window is an order confirmation page that displays:

“You have ordered n # of pizzas. You will receive a call shortly at phone #”.

Display two buttons under the message: Confirm Order and Cancel.

If Cancel is clicked, close the popup, otherwise write “Order submitted” on the order entry window and close the popup.

Hint: Make use of the opener property when on the popup to get the values from the input window.

Hint: Write a JS function in the input window that displays the message when invoked from the popup.

Do not simply write the code, give detailed comments on why you did what to support your coding style.

Kemahiran: Javascript

Lihat lebih lanjut: name validation javascript, js coding, coding window, simply comments, simple javascript, opener, javascript validation, page javascript simple, simple function, html javascript code simple, javascript write display, javascript order function, javascript entry, javascript support, javascript code validation, page javascript, javascript exercise, simple javascript validation, popup javascript code, simple use, simple coding, javascript write, simple write, html simple coding, address validation

Tentang Majikan:
( 2 ulasan ) M, United States

ID Projek: #289001