Category Archives: HTML & CSS

Creates a modal dialog box

Creates a modal dialog box that displays the specified HTML document.

A modal dialog box retains the input focus while open. The user cannot switch windows until the dialog box is closed.

Code:
Create Modal Dialog Box <br />
Dialog Height:&nbsp;
<select name="oHeight">
<option>200</option>
<option>300</option>
<option>400</option>
<option>500</option>
</select>&nbsp;&nbsp;
<input onclick="window.showModalDialog(
'http://dotnet.isummation.com/author/amit.aspx', '',
'dialogHeight:' + oHeight.options[oHeight.selectedIndex].text
+ 'px;')" type="button" value="Push To Create" />