How can we display HTML Content through window.showModalDialog()?
Andrew Henderson
I have a website that use showModelessDialog () to open pop up window. The modal dialog is open but appears in blank and not render the content. However, I have some text in the ‘modeless.html’. Below is my code. Can someone suggest ?
<script type="text/javascript"> function OpenModeless() { if (window.showModelessDialog) { // Internet Explorer showModelessDialog("modeless.html", window, "dialogWidth:800px; dialogHeight:600px; "); } else { window.open("modeless.html", "", "width=800, height=600, alwaysRaised=yes"); } } </script><img alt="Buddha" src="Images/Gallary/BuddhaThumbs.jpg" onclick="OpenModeless();" /> 1 1 Answer
How to display HTML Content using window.showModalDialog()
Try that, the question seems to of been asked previously. I simply googled "showModalDialog display html content". Hope this helps.
1