JSFiddle - React, Tailwind, and code Playground
by BDG
HTML
<div id='logout'>this is a test</div>
JavaScript
var comet = {
popup: null,
newPopup: function(windowsname, w, h){
this.popup = window.open(windowsname, windowsname, 'width=' + w + ',height=' + h);
var self = comet;
var logOut= null;
$(this.popup.document).ready(function(){
logOut = self.popup.document.getElementById('logout');
console.log(logOut, self.popup.document);
$(logOut).html('adsfasdfasdf');
/*
$(logOut).live('click', function(){
alert('HELLO');
return false;
})
*/
})
},
some_function: function(){
//calling it here:
this.newPopup('http://jsfiddle.net/maniator/Y8NRB/1/show',1120,550);
}
}
comet.some_function();