brianj
Apr 26th 2009, 1:02 am
Hi everyone..
i know Popups are a bad thing, but for my personal desktop i'm trying to create a popup that scrolls a page (news site etc.) down to a fixed position:
//simple popup that works
<a href="javascript:void(0);"
onClick="window.open('http://site.com/news',
'popup', 'location=no, menubar=no, scrollbars=0,
status=no, resizable=no, width=400, height=300');
">Open Popup</a>
//???
window.scrollTo(350, 0);
window.setTimeout ( ??? )
Does anyone know how to apply the SetTimeout() to make the scroll actually work?
Thanks for help!
i know Popups are a bad thing, but for my personal desktop i'm trying to create a popup that scrolls a page (news site etc.) down to a fixed position:
//simple popup that works
<a href="javascript:void(0);"
onClick="window.open('http://site.com/news',
'popup', 'location=no, menubar=no, scrollbars=0,
status=no, resizable=no, width=400, height=300');
">Open Popup</a>
//???
window.scrollTo(350, 0);
window.setTimeout ( ??? )
Does anyone know how to apply the SetTimeout() to make the scroll actually work?
Thanks for help!