I have a problem with my coding
I am trying to have a prompt box that would ask for name phone and address.
After entering all of the information a button will be clicked and will show all the information entered.
heres my code so far:
function openNewName()
{
var nm=prompt("Name");
var ph=prompt("Phone Number")
var add=prompt("Address")
}
function openNewNameInfo()
{
myWindow=window.open('','','width=300,height=150,top=200,left=500');
myWindow.document.write(nm + ph + add);
}
So I need help with this part : myWindow.document.write(nm + ph + add);
Please I need help! Thanks!