PDA

View Full Version : simulate on press event of page up key


maess
05-06-2005, 11:14 AM
Hi there,


I've created a flash movie with a height of 2000 pixels.

To submit the form in that movie you have to scroll down using internet explorer's scrollbar to click the submit button.

As you go to the next page, the focus of the window stays down, instead of displaying the new flash movie from the top.

Does anyone has a solution for this problem? Maybe using javascript, perhaps simulate pressing the PageUp key, that could solve the problem.

Cheers

Steve

tg
05-06-2005, 01:58 PM
try:

window.moveTo(0,0);


btw... this is javascript. so call the same way you call you other javascript.

proliant
06-11-2005, 12:12 AM
getURL ("javascript:scroll(0,0)");

Scrolls the page back to the top of the page

cheers