I want to open a new window with a particular web page and then scroll to the bottom of that page (without the benefit of any # tags because the target has none).
This is my code:
(The global variable may be a clumsy method: I'm open to suggestions...)
It opens the new window OK but it fails to scroll at all! Can anyone help here?
Denby
This is my code:
Code:
var new_window;
// Functions to open a web page and scroll to the bottom.
function openAndGoBottom () {
new_window = window.open('[URL unfurl="true"]http://www.xe.com/ucc/','newwin');[/URL]
new_window.onload = scrollMe;
}
function scrollMe () {
new_window.scrollTo(0,999999)
}
(The global variable may be a clumsy method: I'm open to suggestions...)
It opens the new window OK but it fails to scroll at all! Can anyone help here?
Denby