View Single Post
  #3 (permalink)  
Old 02-11-08, 04:31 AM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
Assuming that you have the url of the iframe, I'll continue from there.

Firstly, give your input box (again, assuming that you mean <input type="text" />) an ID, and then use the code below to fill the url into that input box.

javascript Code:
  1. // above is the code to get the url from your frame
  2.  
  3. // now we place that url into the input box:
  4. document.getElementById("the_id_of_my_input_box").value = frameURL; // with frameURL defined earlier
  5.  
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote