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.
Trending News
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):
<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>
What would I have to do to get babywindow.html to come up without the user having to click "Home" first?
Thanks.
Thanks very much, everyone. Hardcoding that the index.html should go to babywindow.html is exactly what was needed.
2 Answers
- 1 decade agoFavorite Answer
From my experience working with JavaScript and frames, I would think you don't need the JavaScript if you always want the same two pages loaded into the frames when the page with the frameset is loaded. Just specify "babywindow.html" for the src on the frame on the right in your stillness/index.html page.
- 1 decade ago
Not sure if it a script problem.
in the "http://www.geocities.com/larrywph/stillness/index.... file there will be a line that opens "http://www.geocities.com/larrywph/stillness/200718... in the right frame.
this address need to be changed to "http://www.geocities.com/larrywph/stillness/babywi...
this should work