开发者

Jquery on new Window objects?

开发者 https://www.devze.com 2022-12-30 01:01 出处:网络
Is it possible to use jQuery on a new Window javascript object? Example: win = new Window(\'mywindow\',\'width= 400\', \'height=400\');

Is it possible to use jQuery on a new Window javascript object?

Example:

win = new Window('mywindow','width= 400', 'height=400');

win.getContent().inne开发者_运维技巧rHTML = xmlFindNodeContent(XmlHttp.responseXML, "windowHtml");

jQuery(win).ready(function(){
  do jQuery stuff on the new window here??
}); 

Is something like this possible?

NB: new Window() function takes some parameters before it works properly. Something like this:

window.open('mywindow','width=400,height=200')


I think is better to insert the jquery.min.js on the new windows and there do the $(function(){// jquery stuff });


I tried the code i wrote in topic myself and it works great!

Thumbs up for jQuery!

0

精彩评论

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