I am trying to open popup using window.open finction but somehow it’s not working … well below is the code
string properties = "left=250px, top=245px, width=700px, height=450px,scrollbars=yes, status=yes, resizable=yes";
TableCell cell = new TableCell();
cell.Text = "<a href=\"javascript:void(window.open('details.aspx?node="+node+"','"+properties+"'))\">" + "View Details</a>";
But his is not working. While clicking the anchor tag getting javascript error “Invalid argument”. Please tell where am I going wrong?
Thanks,
Rahul
You’re doing it wrong. Never put JavaScript into the href attribute. This is how you should do it:
I added the second argument for
window.open(the window identifier) as well, which is probably what was breaking your thing in the first place.