Create Modal Window

[Total: 0    Average: 0/5]

This shows how to create a modal window.

Body Code:

<script>
function doThis()
{
alert("what?");
}
function createModal()
{
  var url_source="http://www.js-examples.com/"; /* define if you want a page popped into it */
  var modal_dim="dialogWidth:500px; dialogHeight:500px; center:yes";
  var x = window.showModalDialog(url_source,"",modal_dim);
}
</script>
<a href="javascript:createModal()">create a modal window</a>

Times Viewed: 1

Leave a Reply

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