How would I go about diplaying/getting the URL of a frame from another frame. All I want to do really is, while in 1 frame get the URL of another frame with javascript so I can use the data in php a script Thanks
is it a frame or IFrame? try giving a name to the frame and use the src property var framURL= frameName.src; Code (markup):
Yes it is a frame. The Frame's name is "mainFrame" So What I need to do is from the top frame, get the URL of mainFrame and store it in a variable for later use. Could you give me an example of how I would implement your code example in a script? I really am a javascript noob. Thank you in advance for your help.
This is what I have so far but doesn't work. Any ideas? <script language="javascript" type="text/javascript"> function geturl() { var mainurl = mainFrame.src; document.write (mainurl); } </script> <a href="javascript:geturl();" target="_blank">Report</a> Code (markup):