I want to display some text in a inline popup window with ok/close button.
I implemented and bit modified Custom Alert but sometimes the text has too many lines so I need the window scrollable.
I want to use only javascript. No framework nor libraries.
you should be able to accomplish that with css
With the default style it would be like this:
Example on jsfiddle.
Also as Casablanca points out, if you want to assign a specific class you can modify the javascript to use
and then your own css