我在window2里用<body onblur='self.focus();'>,但发现event onblur()不是总被触发。我发现1)在window2打开后,如果不touch window2 screen,直接点击window1,window2就会hide到window1后面。2)只有在touch window2后,比如用mouse在window2任何地方点一下,然后再点击window1的时候,window2 onblur就会被触发,这时候window2就不会hide到后面了。问题是如何在任何情况下都让window2 on top?
Besides, window2 is not a popup inside window1, but in my case, window2 always sits inside window1, looks like a popup.
Thanks for any help!
Besides, window2 is not a popup inside window1, but in my case, window2 always sits inside window1, looks like a popup.
Thanks for any help!