Trouble scrolling a window with scrollBy( ).

B

BGC

I'm attempting something like this:

win1 =
window.open("pop_up.html","_blank","width=325,height=272,top=0,left=0,scrollbars=0,resizable=0");
win1.window.scrollBy(100,50);

I've done this before when instead of "_blank" I had a unique name there for
each popup I wanted to open.
ex.
win1= window.open("popup.html","ww1", ........
win2 =.........................................."ww2", ..........
etc. etc

Now I want one function you pass a filename and it will open a new popup
window each time by using "_blank" instead of a unique name for each popup.
I can't see why the top example won't work but it doesn't.

It would seem to me that win1 would reference the latest popup opened and
the scroll would apply to that window, but nothing is happening. Any ideas
would be helpful.

Thanks,
BGC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,883
Members
47,415
Latest member
SharonCran

Latest Threads

Top