Modal Window for All

[Total: 0    Average: 0/5]

This will create a modal window.

Head Code:

<script language="javascript" type="text/javascript">
var WindowObjectReference;
function openRequestedPopup()
{
WindowObjectReference = window.open("http://www.js-examples.com/",
"google_WindowName",
"menubar=yes, width=600,height=400, left=200,
location=yes,resizable=yes,scrollbars=yes,status=yes, modal=yes");
}
</script> 

Body Code:

<form>
<input type="button" value="open window" onclick="openRequestedPopup()"> 
</form>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *