1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
5 <title>My Modal Content
</title>
6 <link rel=
"stylesheet" type=
"text/css" href=
"style.css" />
13 var pwel
= document
.getElementById('aescrypt_p_enc');
15 var formel
= document
.getElementById('aescrypt_f_enc');
16 formel
.removeChild(pwel
),
19 window
.top
.hidePopWin(true);
24 Content for the modal window.
27 Notice you can't click anything on the previous page because of the semi-transparent div below..pretty slick huh?
30 Try resizing your window and check out how the modal re-centers itself.
32 <div id="aescrypt_o_enc" class="aescrypt_overlay">
34 <p id="aescrypt_l_enc">Encrypt selected text:</p>
35 <form id="aescrypt_f_enc" onsubmit="closeModal();">
36 <input type="password" name="aescrypt_p_enc" id="aescrypt_p_enc" />
37 <input type="submit" />
42 <!--button onclick="closeModal();">close this modal</button-->
44 document.getElementById('aescrypt_p_enc').focus();