Onmouseover capabilities

P

PaPa

Is it possible to target across frames using mouseover?

I have a document with two frames.
I would like to mouseover a link in frame A to cause some text to
change (in a div or iframe) in frame B.

Can Java script do this?

Thank you,
PaPa
 
T

Thomas 'PointedEars' Lahn

PaPa said:
Is it possible to target across frames using mouseover?

Yes, if the Same Origin Policy allows it.
I have a document with two frames.
I would like to mouseover a link in frame A to cause some text to
change (in a div or iframe) in frame B.

Provided that you mean "`a[href]' element" by "link", that frame A and B are
sibling frames with appropriate names and that all document resources are in
the same second-level domain, you can refer to frame B from frame A with

window.parent.frames['frameB']

That is a reference to a Window object which has a `document' property which
has properties such as getElementById(), and Window objects have a `frames'
property to refer to `iframe' Window objects in their document.

http://jibbering.com/faq/
Can Java script do this?

I don't know. What is "Java script"?

http://javascript.crockford.com/javascript.html


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,154
Messages
2,570,870
Members
47,400
Latest member
FloridaFvt

Latest Threads

Top