Access a window by window name

后端 未结 7 1164
悲哀的现实
悲哀的现实 2020-11-29 07:08

If I open a window using

window.open(\'myurl.html\', \'windowname\', \'width=100,height=100\');

How do I refer to the new window (from the

7条回答
  •  [愿得一人]
    2020-11-29 07:43

    It is not possible. The windowName is just to be used in target="..." of links/forms or to use the same name again in another window.open call to open a new url in that window.

提交回复
热议问题