kevinw (owner)

Revisions

gist: 132750 Download_button fork
public
Public Clone URL: git://gist.github.com/132750.git
Embed All Files: show embed
jquery.unload.bug.html #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<html>
    <head>
        <link rel=StyleSheet href="feed.css" type="text/css" media=screen>
        <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script>
        <script>
            function onclick() {
                var childWindow = window.open('about:blank');
                $(childWindow).unload(function() {alert('foo');});
            }
 
        </script>
    </head>
    <body>
        <a href="javascript:onclick();">click</a>
    </body>
</html>