L
L
lovesuper2018-09-12 16:06:37
JavaScript
lovesuper, 2018-09-12 16:06:37

How to scroll the content down in a window opened via window.open?

You need to open a new window in chrome and scroll down the content in it. For some reason the Google methods don't work. You get the object of the open window in the parent window, and nothing but closing it comes out. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2018-09-12
@modestguy

window.open('http://yoursite.com','mypopup',
  'status=1,width=500,height=500,scrollbars=1');

html {
  overflow-x: hidden;
  overflow-y: auto;
}

And take a look at this:
https://www.w3schools.com/jsref/met_win_scrollby.asp
var window = window.open(url, windowName, [windowFeatures]);
window.scrollBy(x, y)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question