window.open and $(document).ready

前端 未结 2 836
南笙
南笙 2021-01-15 16:20

I am trying to make a bookmarklet that opens a popup window. Inside this window is a list of CSS classes that once selected, highlights that object on window.opener

2条回答
  •  难免孤独
    2021-01-15 16:28

    Does the $(document).ready fire if you add the following line before the return false?

    testpopup.document.close();
    

    This is a wild guess though, and I haven't tested this.

提交回复
热议问题