Click to See Complete Forum and Search --> : popup window
chalisa71
07-20-2003, 04:13 PM
I was woundering if anyone can help me put a from inside a popup window. I already have the the popup window i just don't know how to put the from in the popup window. If there is anyone that can help me I will really appericate it. Thanks again for your time and help.
Umm... Just put the form in the page that you window.open() opens? Maybe I missed something...
David Harrison
07-20-2003, 04:40 PM
Do you mean like this:
newwin = window.open("", "hi", "toolbar=no,status=no, width=200, height=200");
newwin.document.writeln("<html><head><title>"+name+"</title></head><body>");
newwin.document.writeln('<form id="aform">');
newwin.document.writeln('<input type="text" id="sometext">');
newwin.document.writeln('<input type="button" value="Button"');
newwin.document.writeln('onclick="alert(document.getElementById(\'aform\').sometext.value);">');
newwin.document.writeln('</form>');
newwin.document.writeln("</body></html>");