How do we make script to load parent at top : onload?

P

Paul D

HI! I use iframes and when a user clicks a link in the middle of a page it
loads the new child iframe in the iframe BUT the new page is at the same
verticle spot as the previous page. I want the page to be loaded at the top
so the user can see the see it at the beginning.

I thought of adding an anchor to the link but this would put the child page
at the top but also hide the top of the main parent. so is there way of
loading the child page and at the same time make the parent page stay at the
top?'

Paul
 
T

Thomas A. Rowe

No.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
P

Paul D

Thomas said:

HI! yes I agree. after I wrote the post I relised that if I used the unload
in the body it would only trigger if I reloaded the main parent which is no
good in my situation.

Do you have another suggestion?

Paul
 
T

Thomas A. Rowe

I don't know of any method to do what you want.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
P

Paul D

Thomas said:
I don't know of any method to do what you want.

HI! I found the answer. its below

<script type='text/javascript'>
parent.document.body.scrollTop = 0 )
</script>

I guy on the jscript newgroup answered me, this guy good's and he has
answered a few questions that I had before.
His name is " Evertjan"
 
T

Trevor L.

Paul said:
I guy on the jscript newgroup answered me, this guy good's and he has
answered a few questions that I had before.
His name is " Evertjan"

Not surprising,
Evretjan is a constant contributor to thr MS newsgroups and a very
knowledgaable one at that
 

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

Top