User-271186128 posted
Hi neerajkumarmodi,
Below code successfully opens up new page in new window,but i need to open it as a popup window with fixed size something like below...
"window.open('" + url + "', 'popup_window', 'width=700,height=600,left=100,top=100,resizable=yes');";
maincontentText: 'Datetime:' + datetime + '<br/> ' + 'Weight:' + this.y + '<br/> ' + ' <a target="_blank" href="default.aspx?uid1=' + this.category + '" > Click here</a>' + '<br/> ' + '<a target="_blank" href="disable.aspx?uid2=' + datetime + '"> Click here to open </a>' + "<br/>" ,
According to your code, it seems that you want to open the hyperlink in a popup up window. If that is the case, try to add onclick event in the a tag,
Code like this (you could change the href attribute):
'<a href="http://www.facebook.com/sharer" target="_blank" onclick="window.open(this.href, \'mywin\',\'left=20,top=20,width=500,height=500,toolbar=1,resizable=yes\'); return false;" >Share this</a>'
Best regards,
Dillion