Forum Moderators: open

Message Too Old, No Replies

Javascript error

         

adamnichols45

4:31 pm on Apr 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<form name="emailmain" method="post" action="newsletter2.php" target="_blank" onsubmit="window.open('', 'processor_window', 'width=200,height=150'); this.target = 'processor_window'">

with out having the <SCRIPT LANGUAGE="javascript"> and </script> the page display an error but when i use the tages the newsletter page does not show up

whoisgregg

6:17 pm on Apr 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just get rid of the onsubmit and add a onload in the processing script to change the window size. target="_blank" is doing what you want, posting the form to a new window, let the new window do the resizing.