# Basic js help

**URL:** <https://forum.kirupa.com/t/basic-js-help/119640>\
**Category:** Uncategorized\
**Created:** [August 17, 2004, 2:33am UTC](https://forum.kirupa.com/t/basic-js-help/119640 "2004-08-17T02:33:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjah](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@benjah](https://forum.kirupa.com/u/benjah)\
**Post date:** [August 17, 2004, 2:33am UTC](https://forum.kirupa.com/t/basic-js-help/119640/1 "2004-08-17T02:33:01Z")

</div>

first of all, get used to my questions because they have only just begun 🙂

Ok, i am using a lot of frames these days and what i want to have happen is for someone to move their mouse over a link in one frame and have the page come up in a different frame, and then on the mouse out go back to null.html which is just has a background but no text.

here’s what i did:

a href=“bioanswer.html#name” onMouseOver=“parent.location=‘dude.html’”; onMouseOut=“parent.location=‘null.html’”; target=“answer”

the problem is the “parent.location” but i don’t know what to put instead of “parent.location” so that i could open “bioanswer.html#name” in the “answer” frame shown above.  
thanks in advanced for the help 🙂

---

<div class="post-metadata">

**Author:** ![minimalistik](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@minimalistik](https://forum.kirupa.com/u/minimalistik)\
**Post date:** [August 17, 2004, 8:23am UTC](https://forum.kirupa.com/t/basic-js-help/119640/2 "2004-08-17T08:23:24Z")

</div>

What is your frames-layout first of all

---

<div class="post-metadata">

**Author:** ![benjah](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@benjah](https://forum.kirupa.com/u/benjah)\
**Post date:** [August 17, 2004, 6:11pm UTC](https://forum.kirupa.com/t/basic-js-help/119640/3 "2004-08-17T18:11:03Z")

</div>

if i wasn’t using the onmouseover action, it would look like this:  
a href=“bioanswer.html#name” target=“answer”

but what i want to do is this:  
a href=“bioanswer.html#name” onmouseover=“parent.location=‘bioanswer.html#name’”

the only problem is, with the javascript i don’t know how to make the page open in the other frame.

---

<div class="post-metadata">

**Author:** ![simplistik](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/simplistik/32/7747_2.png) [@simplistik](https://forum.kirupa.com/u/simplistik)\
**Post date:** [August 17, 2004, 6:56pm UTC](https://forum.kirupa.com/t/basic-js-help/119640/4 "2004-08-17T18:56:18Z")

</div>

you need to include your target somewhere in your mouseover… right now you’re not telling it to go anywhere… all you have is it telling what document needs to be opened but it doesn’t know where it needs to open it.

---

<div class="post-metadata">

**Author:** ![benjah](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@benjah](https://forum.kirupa.com/u/benjah)\
**Post date:** [August 17, 2004, 7:00pm UTC](https://forum.kirupa.com/t/basic-js-help/119640/5 "2004-08-17T19:00:53Z")

</div>

i am really stupid, so im trying my best to explain what i don’t know how to do, so sorry. however, let me try again

i want to change parent.location so that it opens the file in the “answer” frame. do i put parent.answer or what?

once again sorry, but i am dumb.

---

<div class="post-metadata">

**Author:** ![benjah](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@benjah](https://forum.kirupa.com/u/benjah)\
**Post date:** [August 18, 2004, 8:23pm UTC](https://forum.kirupa.com/t/basic-js-help/119640/6 "2004-08-18T20:23:04Z")

</div>

ok, i figured it out, so no need for help anymore.

however, if anyone else is wondering how to do it…

to make it work in IE you put onmouseover=“parent.yourframename.location=‘yourpage.html’;”

or in netscape you put  
onmouseover=“parent.yourframename.document.location=‘yourpage.html’;”

ok, i hope that helps someone in the future.
