mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
You can now press ESC to close the popup window.
git-svn-id: http://svn.automattic.com/wordpress/trunk@120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4aa52900e1
commit
18cd0c2fb3
@ -105,6 +105,14 @@ QQQ;
|
|||||||
|
|
||||||
<p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite></p>
|
<p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite></p>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18)
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.onkeypress = function esc(e) {
|
||||||
|
if(typeof(e) == "undefined") { e=event; }
|
||||||
|
if (e.keyCode == 27) { self.close(); }
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user