javascript and forms

admin

Administrator
Staff member
HI, I'm having difficulty, i want to do up a form so when the submit button is clicked, rather than getting the next page in just a new window or the same page it opens in a smaller pop-up window. I've pasted the code as it currently stands, couple someone let me know how to combine the form action with the javascript.

<form method="post" onClick="window.open('windowname','action','width=150,height=100,directories=no,location=no,menubar=no,scroll bars=no,status=no,toolbar=no,resizable=no,left=50,top=50,screenX=50,screenY=50');return false" action="<?php echo"$PHP_SELF" ?>">
 
Back
Top