[英]Child window with html5 and JS?
In Silverlight it's possible to create a child window within your app with the CLICK of a button. 在Silverlight中,可以通过单击按钮在应用程序中创建子窗口。 SO i'm just wondering.... is it possible to have one in html5 with javascrip? 所以,我只是想知道....是否可以在html5中使用javascrip?
a child window is just a window that you can move around and it can display stuff such as say........ a text chat with another online user. 子窗口只是一个可以移动的窗口,它可以显示诸如........与其他在线用户进行文本聊天等内容。
Sure, window.open
. 当然, window.open
。 https://developer.mozilla.org/en-US/docs/Web/API/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);
}
Bear in mind some browsers will block this. 请记住,有些浏览器会阻止这种情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.