Now I am struggling with this class, it is an online...more like self taught...class and the text book is bad.
I have four coding assignments left, thank goodness. The one I am working on now is dealing with popup windows and cross-window communication. I have most of it written except for two things. The first is referencing user entered text from the original window in the popup window. The last is writing a line of text in the original window when the popup window is closed.
If anyone has any ideas I would appreciate the assistance:
This is 3a.htm (original window)
and this is 3b.htm (the popup window)
Name: <input type='text' name='name' /><br><br>
Phone #: <input type='text' id='cPhone'/><br><br>
Address: <input type='text' /><br><br>
How Many Pizzas: <input type='text' id='pOrdered' /><br><br>
<input type='button' onclick=window.open('3b.htm') value='Order'/>
var noPizza = document.getElementById('pOrdered');
var phoneNo = document.getElementById('cPhone');
You have ordered [no of pizza.value here] pizza(s)
You will receive a call shortly at phone number [phone number value here]
<input type='button' onclick=window.close() value='Confirm Order' />
<input type='button' onclick=window.close() value='Cancel' />