For a sandwich, there is a piece of bread at the bottom .
I've tested window.blur() in
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_blur
Please test the code in the above link.
But it seems it does not work. The new window does not go to the bottom . It appears on the top since it was created. I can always see the popup since clicking the button.
I have tested it in two PC(windows 7 and 10) with newest chrome, firefox, IE. But none of them worked.
Maybe I am not understanding what window.blur() mean?
PS window.focus() works well in any case.
Browsers generally ignore window.blur()
. This is recommended by the spec .
User agents [browsers] are encouraged to ignore calls to this blur() method entirely.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.