I want to create and display a self designed window on current webpage instead of popup as you can see on this page
Open the link and click first “Demo” button on that page.
and the same type window appeared when I tried to put a link on this question on stackoverflow which accepted my link.
for example facebook also uses this type of window to display tagged images.
please help me.
If you are looking for the exact code to popup a div box then here it is. Displaying the div box in the centre of the browser is harder, and will involve some more javascript to work out the centre.
Note the ‘return false;’ in the OnClientClick event of the button. This stops the button performing a postback and reloading the entire page.