View Full Version : Javascript popup assistance

07-09-2005, 08:52 AM
Hi Everyone,

Can anyone shed some light on the following javascript?
I'm trying to create a popup link with a value taken from a select option.

addSummary is the name of the form
stockId is the name of the select dropdown.

<a href=\"javascript:\" onClick=\"window.open('auAddSummary.php?action=view&stockId=".$stockId."' + document.forms.addSummary.stockId.$stockId, target=_new); return false\">Popup</a>

ta, will