How Can We Display Html Content Through Window. showModalDialog()?
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...
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" class="gallary" src="Images/Gallary/BuddhaThumbs.jpg" onclick="OpenModeless();" />
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.