Jump to content

Recommended Posts

I don't quite understand what you mean by GET the url. Do you mean put it in a GET variable? retrieve it? Could you explain your problem a little better

 

i have a bottom frame, where input the url.  the top frame displays the website of the url i put in.

 

 

i want to reverse the process.  so whatever website is in the top frame.  i can retrieve the url.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/179235-header-help/#findComment-945654
Share on other sites

you can use javascript. it can get the location of the frame like so

url = parent.frameName.location.href;

 

thx you a life saver.  can you just help me get this working

 

<script type='text/javascript'>
function urlget(){

  url = parent.link_frame.location.href;
urlarea.value = url;
}
</script>

<a onclick='urlget()'></a>

 

<textarea name="urlarea" id="urlarea"></textarea>

 

where did i go wrong?

Link to comment
https://forums.phpfreaks.com/topic/179235-header-help/#findComment-945674
Share on other sites

still having problems..

 

<script type='text/javascript'>
function urlget(){

   var url = parent.link_frame.location.href;
  document.getElementById('urlarea').value = url;
}
</script>

 

<textarea name="urlarea" id="urlarea"></textarea>

 

<a onclick='urlget()'></a>

 

i don't see why it isn't working?

Link to comment
https://forums.phpfreaks.com/topic/179235-header-help/#findComment-945681
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.