使用 JavaScript 在弹出窗口中打开 ChatApplication
我正在这个项目网站上工作,其中我将添加一个聊天应用程序,用户可以在其中相互通信。我已经开发了一个聊天室网页,现在运行良好。但是,我想要的是在我的网站上创建一个“聊天室”链接,单击后将弹出聊天室作为弹出窗口。
有人可以帮助我如何做到这一点吗?谢谢大家。 :)
I'm working on this project website wherein i will be adding a chat application where users can communicate with each other. I already have developed a chat room webpage which is now functioning well. However, what I want is to create a "Chat Room" link on my website which will just pop out the chat room as a pop-up window upon click.
Can somebody please help me on how to do this? Thanks everyone. :)
如果您链接到的聊天室有
target = "_blank"
,它将在新窗口中打开:这只是正常的 HTML/浏览器行为。
If you link to the chat room has
target = "_blank"
, it will open in a new window:This is just normal HTML / browser behavior.