Forums
This topic is locked
JS Help
Posted 05 Apr 2005 01:46:36
1
has voted
05 Apr 2005 01:46:36 Andrea McGuire posted:
<FORM name="quantityform1" target="_blank"> <SELECT name="productquantity">
<OPTION SELECTED value="www.mysite.com/Merchant2/merchant.mvc?Screen=BASK&Store_Code=ABC&Action=ADPR&Product_Code=4-21402&Attributes=Yes&Quantity=1" target="blank"> 1
<OPTION value="www.mysite.com/Merchant2/merchant.mvc?Screen=BASK&Store_Code=ABC&Action=ADPR&Product_Code=4-21402&Attributes=Yes&Quantity=2">2
</SELECT>
<INPUT type="button" name="go" value="Add To Cart" STYLE="font-family:Times New Roman, Times, serif; font-size:14;
font-weight: bold; background:#f2f2f2; color:#ff0000; width:80; border:none" onClick="window.location=document.quantityform.productquantity.options[document.quantityform.productquantity.selectedIndex].value">
</FORM>
Should I stay or should I go now? Thanks and goodbye Joe.
Replies
Replied 05 Apr 2005 01:49:43
05 Apr 2005 01:49:43 Andrea McGuire replied:
Oops. Question is this:
I'm using the above JS which is working well. However, using target="blank" in the form tag, the option tag or the button tag I can't get the selected option webpage to open in a new window. My guess is that I need to set it in the onclick, but I have no clue how. Any help appreciated. Thanks, AMc
Should I stay or should I go now? Thanks and goodbye Joe.
I'm using the above JS which is working well. However, using target="blank" in the form tag, the option tag or the button tag I can't get the selected option webpage to open in a new window. My guess is that I need to set it in the onclick, but I have no clue how. Any help appreciated. Thanks, AMc
Should I stay or should I go now? Thanks and goodbye Joe.