首页 > 文件下载按钮被迅雷响应后,JS事件无法触发

文件下载按钮被迅雷响应后,JS事件无法触发

JS事件,当按钮被点击时,弹出层,但如果按钮链接指向的是文件下载地址,点击触发迅雷下载后,事件无法响应,层无法弹出来。
代码如下:

<!DOCTYPE HTML>
<html>
<head>
    <title></title>
    <meta charset="utf-8">
    <script src="http://www.17sucai.com/preview/5529/2014-05-23/弹框/js/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="http://www.17sucai.com/preview/5529/2014-05-23/弹框/js/jquery.alertWindow.min.js" type="text/javascript"></script>
<style type="text/css">
.alertWindowContent h1,p{text-align: center;font-size: 18px;font-weight: bolder;}
.alertWindowContent input{width: 100px; height: 50px;cursor: pointer;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;}
</style>
<script>
    $(function(){
        $("#input1").click(function(){
            jQuery.alertWindow("标题设置","内容设置");
        });
    });
</script>
</head>
<body>
<a href="http://dldir1.qq.com/qqyy/pc/QQPlayer_Setup_39_923.exe" id="input1" >点我下载</a>
</body>
</html>

请问怎么解决此问题?让迅雷下载的时候可以触发事件弹出层。


你把下载移到事件中不就完了

        $("#input1").click(function(){
            jQuery.alertWindow("标题设置","内容设置");
            location.href = 'http://dldir1.qq.com/qqyy/pc/QQPlayer_Setup_39_923.exe';
        });
【热门文章】
【热门文章】