Jump to content

header help


MDanz

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.