# window.open and scrollbars

**URL:** https://forum.kirupa.com/t/window-open-and-scrollbars/651772
**Category:** programming
**Created:** [May 5, 2022, 8:25pm UTC](https://forum.kirupa.com/t/window-open-and-scrollbars/651772 "2022-05-05T20:25:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AdarshLokesh](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@AdarshLokesh](https://forum.kirupa.com/u/AdarshLokesh)
#### Post date: [May 5, 2022, 8:25pm UTC](https://forum.kirupa.com/t/window-open-and-scrollbars/651772/1 "2022-05-05T20:25:34Z")

</div>

Hello,  
I’m trying to create a html page on the fly and open it.  
My code:

```auto
mywindow = window.open('Testing', 'Welcome', 'width=900,resizable,scrollbars');
mywindow.document.write(myText);

```

The variable myText has all the html content and it is displaying correctly.  
However, since the content exceed one screen height, I’m unable to scroll down and see the entire contents.  
Appreciate any input to fix this issue.

Many thanks,  
-Adarsh

---

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [May 5, 2022, 10:19pm UTC](https://forum.kirupa.com/t/window-open-and-scrollbars/651772/2 "2022-05-05T22:19:37Z")

</div>

Hi @AdarshLokesh - can you create a repro on a site like CodePen and share a link? What browser are you using?

When I tried this on my local machine, I was able to see the scrollbars in Chrome on macOS:

 ![Screen Shot 2022-05-05 at 3.17.00 PM](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/9/e/9e06c0e070bed9be994937f854f32c74b7841228.png)

Also, welcome to the forums 🙂
