I have some javascript code that opens a new tab and fills it with some html like so:
var tab = window.open();
tab.document.write(html);
For some reason, you can't scroll the content that shows up in the new tab by using the mouse wheel or by clicking the up/down arrows on the scroll bar. You can still scroll the content by clicking and dragging the scroll bar though.
How do I enable scrolling in the new tab?
If it matters, the html content is an asp.net core developer exception page.
It also happens intermittently. About 50% of the time it seems to work correctly.