1

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.

Eric B
  • 4,367
  • 5
  • 33
  • 43
  • Any css being written to the page? – jedifans Sep 27 '16 at 19:34
  • @jedifans [yes](https://github.com/aspnet/Diagnostics/blob/c224a726f9959f95d948d172140d048aea1caadd/src/Microsoft.AspNetCore.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.css) – Eric B Sep 27 '16 at 19:40
  • OK so nothing like `overflow: hidden;` being written out. Perhaps inspect the opened tab in chrome's developer tools to find a cause. – jedifans Sep 27 '16 at 19:46
  • Interesting. Never seen this one, but it is actually reproducible right from console. Found a reference on similar issue: http://stackoverflow.com/questions/2572333/google-chrome-window-open-workaround – Vladimir M Sep 27 '16 at 20:02

0 Answers0