I am writing a clientside ordering form as part of an assignment. The user enters their details into text boxes and selects the products and quantities they wish to order. When they click the cmdinvoice button a new window opens and all the order information is suppose to be written to the new document.
The code below does open the new window but I also get an "object required 'nw'" error message and nothing is printed on the page.
sub cmdinvoice_onclick()
dim nw
nw = window.open ("",""
nw.document.open()
nw.document.write ("INVOICE"
nw.document.close
Has anyone got an suggestions? I'm pretty new to programming so please forgive me if I've got it completely wrong.
Thanks
The code below does open the new window but I also get an "object required 'nw'" error message and nothing is printed on the page.
sub cmdinvoice_onclick()
dim nw
nw = window.open ("",""
nw.document.open()
nw.document.write ("INVOICE"
nw.document.close
Has anyone got an suggestions? I'm pretty new to programming so please forgive me if I've got it completely wrong.
Thanks