Jump to content

Need More Javascript Help!


DiGNAN17

Recommended Posts

I don't know why none of this java stuff works for me frown.gif

Anyway, now I'm trying something with frames. I want to load pages in two separate frames via a click in one frame. I downloaded code for this, and it doesn't work.

So far I have this in the <head>:

<script language="javascript">

function loadtwo(url1, url2) {

4.6.location.href= url1;

4.8.location.href= url2;

}

</script>

where 4 is the name of the frame where the link is located, and 6 and 8 are where I want the pages to load.

Then this is how the link looks in the <body>:

<a href="javascript:loadtwo("t1.html", "t2.html")">Go</a>

Is all this right? When I click on the link to test it out, it gives me that little exclamation mark in the bottom left of the browser and say "Error on page". When the mouse is just over the link, the same location says only "javascript:loadtwo(" and nothing else. What am I doing wrong?

------------------

FURIOS Df>c> icon100.gif

Link to comment
Share on other sites

  • 21 years later...
  • Moderators

Holy cow, wow. Guess it's never too late to comment.

On 8/13/2000 at 4:04 PM, KBlair said:

DiG, will you please email me all the parts of your frameset and I can get this working for you. It's hard to troubleshoot this stuff in just parts.

BTW, is your email @thekave working now????

c>

------------------

Who knows what evil lurks in the darkness of The Kave ?

www.thekave.net Home of The Klipschmonster!

Whatever happened to the Klipschmonster.

  • Haha 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...