Child window with html5 and JS?

In Silverlight, you can create a child window in your application using the CLICK button. So I'm just wondering .... is it possible to have one in html5 with javascrip?

a child window is just a window that you can move around, and it can display things like, for example, talking ........ text chat with another online user.

+4
source share
1 answer

Of course, window.open . https://developer.mozilla.org/en-US/docs/Web/API/Window.open

Example:

 var windowObjectReference; var strWindowFeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes"; function openRequestedPopup() { windowObjectReference = window.open("http://www.cnn.com/", "CNN_WindowName", strWindowFeatures); } 

Remember that some browsers will block this.

+1
source

Source: https://habr.com/ru/post/1438799/


All Articles