我有一个功能,点击后,它会通过$.get()
调用检查一些信息,然后才能知道是否应该打开子窗口。它工作得很好,只是因为打开子窗口的功能不是直接来自点击事件,它会被认为是一个讨厌的不需要的弹出窗口。有谁知道解决方法或向浏览器证明它是一个想要的窗口的方法?谢谢。
$('#send').click(function(){
$.ajaxSetup({cache: false})
$.get('test3.html',function(data){
if(data == "processing"){
alert("still processing");
}else{
childPage = window.open("test.html","send","width = 300,height = 300");
}
});
});