Here is a syntax that how you can use modal dialog window in any web page. There are 2 types of popup windows:
- window.open
- ModalDialog
In both of then there are only one difference i.e. in ModalDialog you can’t focus on parent browser page without closing this pop-up window but in window.open you can focus on parent window any time.
showModalDialog(‘abc.aspx’,’window_name’,’dialogwidth:100px; dialogheight:100px;’);