faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 3 people (67%) answered Yes
Recently 2 of 3 people (67%) answered Yes

Entry

When I reload a long inline frame, I want its parent window to be repositioned back to the top

Apr 7th, 2008 23:37
ha mo, Colin Fraser, Mike Tyler,


Try: 
function whateverreloadstheframe() {
     window.MoveTo(0,0);
     //do everything else
}
However, it may really be 
    parent.MoveTo(100,10);
Put it wherever you want to. You cannot use the "this" keyword.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com