NeverMind - Add Javascript Window.Open to ProductDetail.Template

Sep 4, 2009 at 5:27 PM
Edited Sep 4, 2009 at 7:54 PM

I've tried adding some text to open a different window from the productdetail.template.  It's purpose is to show the user some more description of options (like Dell does, etc).

Here is the code I added to the page:
     <a href="javascript:window.open('myurl.aspx','chains','width=500,height=400');">Help Me Choose</a>

Unfortunately, when the link is clicked, the page does a postback... and goes to nowhere.  Anyone know why?  How do I stop it?

Thank you!

Hugh

Sep 4, 2009 at 7:54 PM

Nevermind!  I figured it out.  I needed to make the link like this:

<a href="#" onClick=javascript:window.open('myurl.aspx','chains','width=500,height=400');">Help Me Choose</a>