refreshing a frame from a .js file ?? how, please

G

Guest

parent.orderlist.location.href = 'list.htm'

the above is within a .js file that is called in frame1 in this .js
file it should refreshes frame 2 (orderlist)

but it does not. please can someone suggest what i could be doing wrong.

thank you
 
S

Steve Easton

It's not written right and It would have to be called by a function.
Also if your loading into a frame / /iframe you have to give the frame/iframe an id and then open
your page in the frame / iframe

So let's for example say that your frame or iframe looks like this:

<iframe id="container" align="center" width="80%" height="80%"
style="border-style: solid; border-collapse: collapse; border-width: 1;"></iframe>

You must tell the script "where" to write the file. In this case it writes it to "container" which
is the iframe with the id "container."

function load() {
document.all.container.src = list.htm ;
}

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

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