As pure javascript to make the modal window?

Tell me how to do a modal window in pure js, the type that is called through alert, and to publish a few links open in a new window, thanks. Need it without the html.
April 3rd 20 at 18:38
3 answers
April 3rd 20 at 18:40
Just judging by the previous question of the author becomes what he meant.
But, as said above, without the html still does not go far. Html you need to create sredstvami JS:
- create the element: var modal = document.createElement('div');
- will stylish styles: = 'fixed';
- possible kick from the listeners on the previously created controls for it: modalClose.onclick = function() {...}
- stick it somewhere in the DOM:

It's simple.
April 3rd 20 at 18:42
Without HTML you there is nothing you can do.
Need without html? Yuzay prompt and transmit the content inside
April 3rd 20 at 18:44 read can fit your task)

Find more questions by tags JavaScript