Specifying the frame for a window.location.href command 
Author Message
 Specifying the frame for a window.location.href command

At present I have a frames page which includes a contents in
a side bar. When I use Microsoft Forms 2.0 Command Button
to run a script I can't get the page I'm trying to load to appear in
the main frame. I've tried different approaches i.e.. Default Main
frame parameters etc etc... but the page still loads in place of
the contents page.

Anyone know how to do this

My current code is as follows.

<object id="ViewHome" width="67" height="27" align="center"
    classid="clsid:D7053240-CE69-11CD-A777-00DD01143C57">
      <param name="Caption" value="Home">
      <param name="Size" value="1764;706">
      <param name="FontCharSet" value="0">
      <param name="FontPitchAndFamily" value="2">
      <param name="ParagraphAlign" value="3">
      <param name="FontWeight" value="0">
    </object>
    <script language="VBScript"><!--
Sub ViewHome_Click()
 Window.location.href = "home.htm"
end sub
--></script>



Mon, 13 Aug 2001 03:00:00 GMT  
 Specifying the frame for a window.location.href command
top.framename.location.href="home.htm"
or
parent.framename.location.href="home.htm"
or
top.frames(n).location.href="home.htm"    REM "n" = number of frame by order
defined, starting with 0
or
parent.frames(n).location.href="home.htm"

"top" is the topmost window, the whole browser window. "parent" is the
frameset window. This only matters with nested framesets.



Mon, 13 Aug 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Retreiving frame location.href from another frame??

2. Problem using location.href with frames.

3. window.location.href && window.open

4. * top.frames[2].location.href

5. Changing the href location of another frame in VBScript

6. document.referrer returns an empty string on location.href or location.replace

7. window.location.href

8. window.location.href ??

9. window.location.href with a target?

10. window.location.href

11. window.location.href is not working properly?!!!!

12. window.location.href

 

 
Powered by phpBB® Forum Software