How to generate a javascript link in asp.net mvc?
eg.
<a href="javascript:poptastic('/examples/poppedexample.html');">Pop it</a>
Can I use Html.ActionLink and how to do this?
I could do something like this:
<a href="javascript:poptastic('ItemDetail?ID=<%=item.ID%>');">Pop it</a>
But I just want to find out will there be some better solutions for this?
Many thanks.