Here is what I want to do.
Have a button (easy enough)
Make it (the button) open a new window (no problem)
But open a window without specifying a URL.
Add the content of that window with the same button.
ex:
<input type="button" value="wtv" onClick='window.open("","name","attributes=yes, whatever=yes"); name.innerHTML="<html><body>The content</body></html>";'>
Is this possible?
If yes, why is this not working?
Thanks
Have a button (easy enough)
Make it (the button) open a new window (no problem)
But open a window without specifying a URL.
Add the content of that window with the same button.
ex:
<input type="button" value="wtv" onClick='window.open("","name","attributes=yes, whatever=yes"); name.innerHTML="<html><body>The content</body></html>";'>
Is this possible?
If yes, why is this not working?
Thanks
Comment