Hello,
I use the following code to display the results of a form in a popup window:
I copied this code a few years ago from a site. It appears to be working fine, but I'm not sure if the syntax is correct. I have 2 questions:Code:<SCRIPT LANGUAGE="JavaScript"> function Start(page) {OpenWin = this.open(page,"popup","scrollbars=1,top=50,left=100,width=560,height=450");} </SCRIPT> <FORM ACTION="form.php" METHOD="POST" TARGET="popup"> . . . <INPUT TYPE="submit" VALUE="Submit Vote" OnClick="Start('')"> </FORM>
- Is the TARGET="popup" required here?
- Is OnClick="Start('')" correct? Shouln't it be OnClick="Start(this.form)" or something like that?






Bookmarks