function shirtSize(){ var sml = 'small'; location="JavaScript:top.HIDDEN.addtoCart('shirt, T + sml', 6.00)"; } As is, the return shows: shirt, T sml, $6.00. I want the return to show: shirt, T small, $6.00. I'm not sure what to do here...thanks for any help.
Changing this line: location="javascript:top.HIDDEN.addtoCart('shirt, T + sml', 6.00)"; to this line solved the problem, location="javascript:top.HIDDEN.addtoCart('shirt, T "+sml+"', 6.00)";