I need to load the div inside the pop up window.
Currently I am able to load the direct html content in it through document.write
but how do I load a div(with a form in it) inside the pop window.
Here is the current code
function myFunction() {
var myWindow = window.open("", "MsgWindow", "width=200, height=100");
myWindow.document.write("<p>Need to load the .content div here</p>");
}
Jquery/JavaScript anything would do.
Here is the working DEMO
` with `
– Hacketo Sep 07 '15 at 07:47