multiple framset referencing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freefony
    New Member
    • Nov 2008
    • 59

    multiple framset referencing

    i ve got this frameset
    Code:
    <frameset rows="*" cols="310,*" frameborder="no" border="0" framespacing="0">
      <frame src="input.php" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
      <frameset rows="91,*" cols="*" framespacing="0" frameborder="no" border="0">
        <frame src="../../../Program Files/Macromedia/Dreamweaver 8/UntitledFrame-6" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
        <frame src="output.php" name="content" id="mainFrame" title="" />
      </frameset>
    </frameset>
    and i need to change the location of content from leftframe and am using
    Code:
    parent.content.location.href='newpage.html'
    this has not work and the fact that they re in seperate framesets is causing me a little confussion
  • RamananKalirajan
    Contributor
    • Mar 2008
    • 608

    #2
    Code:
    parent.document.getElementById('mainFrame').src='newpage.html';
    Try this one, It will work....

    Thanks and Regards
    Ramanan Kalirajan

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      You should also look into avoiding frames if possible. You can often use server-side code, or JavaScript to load content in separate container elements.

      Comment

      Working...