Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

?
Lv 6

JavaScript help needed, please?

I have a website that used to work many years ago with an ancient version of Internet Exploder. One page of it doesn't work anymore because of some simple JavaScript thing that I don't understand.

If you go to http://www.geocities.com/larrywph and click on the "About Me" link, you will see a frame come up on the left with the first link in the frame saying "Home". The thing pointed to by that link ("babywindow.html") is supposed to come up on the right automatically, but does not until you click on "Home". I don't understand why not.

The JavaScript on that page is this short bit (to be continued):

Update:

<script type="text/javascript" language="JavaScript"><!--

var passed = location.search ? unescape(location.search.substring(1)) + '&' : '';

var myRFrame = passed ? passed.substring(0,passed.indexOf('&')) : 'babywindow.html';

document.write('<FRAMESET FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 cols="20%,80%">');

document.write(' <FRAME NAME="Frame17850" SCROLLING=NO NORESIZE SRC="nav.html">');

document.write(' <FRAME NAME="Frame16170" MARGINWIDTH=30 MARGINHEIGHT=30 NORESIZE SRC="' + myRFrame + '">');

//--></script>

Update 2:

What would I have to do to get babywindow.html to come up without the user having to click "Home" first?

Thanks.

Update 3:

Thanks very much, everyone. Hardcoding that the index.html should go to babywindow.html is exactly what was needed.

2 Answers

Relevance
Still have questions? Get your answers by asking now.