function openWin() {
var myWindow=window.open('','','width='+screen.width+',height='+screen.height+',left='+screen.width);
myWindow.document.write("<p>This is 'myWindow'</p>");
myWindow.document.write("<span id='span'></span>");
myWindow.document.close();
myWindow.document.getElementById('span').innerText = 'something';
}
How can I achieve this in gwt, when i try this javascript code itself, inside my gwt project, left='+screen.widthis not seems to be working in FF and myWindow.document.getElementById('span').innerText = 'something'; is not seems to be working in chrome. correcting them in javascript is also fine for me, as long as it works perfect for both FF and chrome.
Regarding using the PopupPanel of gwt, that also wouldnt help me. As far as I know, PopupPanel can't be poped out of the page. In my scenario, the new window should be opened in my secondory display (which can be achieved with current js code. using code'width='+screen.width+',height='+screen.height+',left='+screen.width. (If I am wrong please guide me to know about such property of PopupPanel.