title: OnClientClick Javascript:confirm get value in textbox?
body: <p>So I can't seem to find anywhere how to do this. I want to be able to use the value of BuyOutPrice in the text(confirm) box but can't seem to make it work. </p>
  
  <p>More specificly, how am I supposed to write this part:
  ('Are you sure you want to buy-out for $' + BuyOutPrice + '?')</p>
  
  <p>This was just my closest guess from experience in other programming languages but it appears invalid in JavaScript. </p>
  
  <pre><code>var BuyOutPrice = '&lt;%= Content.ComparisonPrice %&gt;';
  
  
  &lt;asp:ImageButton ID="BuyNowButton" OnClick="BuyNowButton_Click" Style="vertical-align:top;" ImageUrl="Images/btn_buyNow.png" runat="server" OnClientClick="javascript:return confirm('Are you sure you want to buy-out for $' + BuyOutPrice + '?'); BuyNow(); return ValidateBuyNow();" /&gt;
  </code></pre>