JavaScript and DHTML Wizardry back top fwd

Frameset page: frameset3.html

<HTML><HEAD>
    <TITLE>Dynamic Frameset</TITLE>
</HEAD>
<SCRIPT>
    linkURL = "page1.html"
    if (parent.document.URL) {
        callingURL = parent.document.URL
        if (callingURL.indexOf('?') != -1)
            linkURL = callingURL.substring(
              callingURL.indexOf('?')+1,callingURL.length)
    }
    document.writeln('<FRAMESET COLS="130,*">')
    document.writeln('<FRAME SRC="left3.html" NAME="left"
      SCROLLING=AUTO>')
    document.writeln('<FRAME SRC="' + linkURL + '" 
      NAME="content" SCROLLING=AUTO></FRAMESET>')
</SCRIPT>
</HTML>