//////////
pseduo code of modalpoppage
//javscript code
function fun()
{
window.showModalDialog("dialogpage.html",window,"dialogHeight:100px;dialogWidth: 283px; dialogTop: 286px; edge: Raised; center: Yes; resizable: Yes; status: No;");
}
call function on buttton click event
/////////////
pseduo code of dialogpage
//////////////
HTML code
<table align="center">
<tr>
<td>
<img src="" />
</td>
<td>
Information to be display
</td>
</tr>
<tr>
<td>
<input type="Button" value="Yes" onclick="javascript:alert('Yes is clicked');" />
</td>
<td>
<input type="Button" value="No" onclick="javascript:window.close();" />
</td>
</tr>
</table>
//////////////
Create a modal popup in javascript without ajax
Here i am create a popup window alternate to javascript popups
1)we have to create 2 html files
2)First html file name is modalpopup page (you can have any name for page)
3)Second html file is dialog page (you can have any name for page)
4)Uisng window .showModalDialog() method .we can diplay a modal dialog
5)Note for example purpose i used HTML pages you can proceed with other type files
6)You can assign any image to image tag in my example and update CSS according to your requirment
Note :For alternate option of modal dialog visit: www.jquery.com