Click to See Complete Forum and Search --> : 2 actions in JavaScript -frames


asolell
05-24-2003, 11:13 PM
I'm in the main frame.

How do make it such that I do a reload of a different frame and after I do that, I make the current frame load with a new page?

I have the first part. reloading the treeframe

<script>
parent.treeframe.window.location.reload()

// Now I need the second part. Loading a new page
in the current frame. (main).




</script>

khalidali63
05-25-2003, 12:38 AM
almost the way you reload the frame

parent.frameName.window.location.href = "newURL.html"

asolell
05-25-2003, 05:11 AM
Thank you khalidali63 and Dave Clark.
I took Dave's solution as it seem 'neater' and now it works perfectly!

Thanks for your help.

-Alon.