Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

javascript - Open child browser window from child window

Does anyone know how to open a browser window from a child window?

On my main window I'm doing a window.open(.....). But then from this child window I want to open another child window, but its not working. I mean the problem is that the window opens on the first child.

Any ideas?

Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try to use a different name for each window you open:

window.open('url here', 'window one', 'settings')
window.open('url here', 'window two', 'settings')
window.open('url here', 'window three', 'settings')
// and so on

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...