<script type='text/javascript'>
function urlget(){
var url = parent.link_frame.location.href;
document.getElementById('urlarea').innerHTML = url;
}
</script> <textarea name="urlarea" id="urlarea"></textarea> <a onclick='urlget()'></a> it should get the url of the top frame(link_frame) and put in the textarea.