0
I am creating a new page popup through the Javascript code. The page does not exist, so I want it to be just a temporary page. Example:
if (option == 3){
var myPopup = window.open("", "", "width=350, height=300");
myPopup.addEventListener('load', function() {
console.log("received load event");
}, true);
}
This popup only appears through a checkbox. How can I add elements to the page, such as input text, Buttons, etc
There is no way, to do this you must create a new html file and in
window.open
point to that url. A good use option to replace what you want to do is to usemodal
of bootstrap or thedialog
jquery ui– Jhonatan Simões