<html> <head> <script type="text/javascript"> <!-- function setSrc(obj, url) { obj.src = url; } function getSrc(obj) { alert(obj.src); return obj.src; } //--> // above is the code to get the url from your frame // now we place that url into the input box: document.getElementById("frameid").value = myframe; // with frameURL defined earlier </script> </head> <body> <p><b>|</b> <a href="#" onclick="javascript:getSrc(document.getElementById('myframe'))">Get src</a> - displays with alert</p> <iframe id="myframe" src="http://www.google.com"></iframe> <br> <br> <input Id="frameid"><p>frameurl not showing in input</p> </body> </html>