Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Addressing form elements in Netscape

Status
Not open for further replies.

ojf

Instructor
Joined
Sep 27, 2000
Messages
49
Location
NO
I want some text to show up in a right frame's textbox, when I click or move the mouse over a href in my left frame. These are my test files, and they work in IE but not in Netscape 6.2:
MAIN.HTM - describing the frames:

<html><head><title></title></head>
<frameset cols=&quot;50%,*&quot;>
<frame name=&quot;left&quot; src=&quot;left.htm&quot;>
<frame name=&quot;right&quot; src=&quot;right.htm&quot;>
<noframes>
<body>
</body></noframes></frameset></html>

LEFT.HTM (I have just changed the onclick to onmouseover)

<html><head><title></title>
<script language=&quot;JavaScript&quot;>
function fInfo() {
parent.right.myform.mytext.value=&quot;Here is the info..&quot;
}
</script>
</head>
<body>
<a href=start.asp onmouseover=fInfo()>Info</a>
</body></html>

RIGHT.HTM

<html><head>title></title></head>
<body>
<form name=myform method=&quot;post&quot;>
<input type=&quot;text&quot; name=&quot;mytext&quot; >
</form>
</body></html>


Any suggestions?
Olav
 
NutScrape is a pian for Javascript sometimes. Try this
function fInfo() {
parent.right.document.myform.mytext.value=&quot;Here is the info..&quot;
}

I have been having alot of trouble access form elements without implicitly going through the document object. If the above does not work, try putting document. in front of it all.
kibb
 
It worked! Thanks!
Olav
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top