Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnClick supposed to go to pop up window

Status
Not open for further replies.

striker73

MIS
Jun 7, 2001
376
US
I have the following code on my page:

Code:
<form>
<input value=&quot;Preview Saved Changes&quot; name=&quot;Submit&quot; onClick=&quot;window.open('table_preview.php?Product_ID=123', 'Table Preview', 'width=800, height=600');&quot; type=&quot;button&quot;>
</form>

Theoretically, when the user clicks on the button, a new window should open up with table_preview.php in it. I keep getting the error Invalid Argument. What does that mean? What am I doing wrong?
 
You can't have spaces in your target name. Change &quot;Table Preview&quot; to &quot;Table_Preview&quot;.

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life=life-1};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top