开发者

How can i remove the titlebar from a popup in Safari

开发者 https://www.devze.com 2023-02-16 10:56 出处:网络
I want a开发者_如何学Python popup window in html that has no orders or menus etc just plain space. how can I go on about it with html css or javascript/jquery?

I want a开发者_如何学Python popup window in html that has no orders or menus etc just plain space. how can I go on about it with html css or javascript/jquery?

edit: I must use window.open its my only option since I'm using frames and popups in on frame don't show over the others. Also window.createpopup does not work because I'm using safari


For security reasons, this is not possible.

Instead, you should use a modal dialog script, such as jQuery UI Dialog.


You can try with a ligthbox jquery plugin, inside it you can place an ajax response, an image or a complete page (inside a frame): http://fancybox.net/ (I recomend this) http://jquery.com/demo/thickbox/


Are you saying you want a simple div to be displayed on the page? If so, you can use the jQuery Load function. The following will load the HTML from another page into a div on the current page. If you show/hide the div then it will have the effect of being a popup.

HTML

<div id="divTest" style="display:none;"></div>

jQuery

$('#divTest').load('mypage.html', function() {
   $('#divTest').show();
   alert('Load was performed.');
});
0

精彩评论

暂无评论...
验证码 换一张
取 消