JQuery for new Window objects?

Can jQuery be used for a new javascript Window object?

Example:

win = new Window('mywindow','width= 400', 'height=400'); win.getContent().innerHTML = xmlFindNodeContent(XmlHttp.responseXML, "windowHtml"); jQuery(win).ready(function(){ do jQuery stuff on the new window here?? }); 

Is this possible?

NB: the new Window () function accepts some parameters before it works correctly. Something like that:

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

+4
source share
2 answers

I tried the code that I wrote in the subject myself, and it works great!

Thumbs up for jQuery!

0
source

I think it’s better to insert jquery.min.js in new windows and there is $ (function () {// jquery stuff});

+2
source

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


All Articles