I have a asp button and it has its onclick property. using this property I want to open a pop-up window using window.open().
How to write javascript inside the OnClick property.
window.open() used inside a OnClientClick property is fine. I want to use OnClick Property.
Window.Open() insdie OnClick and not inside OnClientClick()
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Soft CornerRank #1,221 · 1.5K reputationPosted Mar 13, 2011, 1:19 AM EST
In Page_Load :
Button1.Attributes.Add( "onclick", "popWin();return false;" );
& in source code :
Chandra Sekhar K160 reputationPosted Mar 13, 2011, 1:24 AM EST
Inside onclick property, i want to open a pop-up window.