I’m trying to pass a DIV to a new window.
JavaScript
function openWin() {
myWindow=window.open('','','width=200,height=100');
}
HTML
<div id="pass">pass this to the new window</div>
<a href="#" onclick="openWin();">click</a>
Can someone help me out?
I think you want this:
(Demo at jsfiddle.net)