Display URL of Frame 2 in Frame 1

N

nickkaplan

I have two html pages in a frameset. Frame1 and Frame2. I'm trying to
display the URL of Frame2 in Frame1, is this possible? I'm thinking I
may have to use some javascript here. Thanks in advance.

I heard something with innerhtml may work too?
 
D

David Mark

you can do like this:

in frame 1:
frame2URL=window.parent.frames.frame2Name.location;
document.all.divID.innerHTML=frame2URL;

But you shouldn't. The all object is non-standard. Use
getElementById instead. And speaking of non-standard, why use
innerHTML to display text? A read-only text input could be used
instead of a div.
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top