devxlogo

Scroll() Function

Scroll() Function

Question:
In the current Web project I have been working on, I have some links on my page which execute a JavaScript function. With this JavaScript function, I open up a pop-up window, using “var newWin = window.open().” Within this pop-up window, I need to scroll down to a specific point in the Web page once the page is loaded. The scroll() function seems to work with Netscape, but I get the error “Access is Denied” when I try this in IE 5. Is there any way to successfully do this with a pop-up window in both browsers? (Note: the page I am spawning is not my own, it is a large corp. Web site.)

Answer:
Unfortunately, IE won’t let you scroll someone else’s Web page, as it thinks that this is a security violation.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist