Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grab Domain and Submit with Form

Status
Not open for further replies.

kieranplatt

Programmer
May 15, 2002
11
GB
I need to read the active url within a framed site (to enable me to grab the affiliate ( etc) and submit this url as a form field within an existing form.

Can anyone help please?
 
>>I need to read the active url within a framed site

which frame?

Known is handfull, Unknown is worldfull
 
Being a novice, I need to ask how you use top.location to grab the info and put it in the form please?
 

Something like this would work for when the frame loads:

Code:
<body onload="document.forms['myForm'].elements['myData'].value = top.location;">

This assumes that your form is called "myForm", and the field you want the data in is called "myData". You can rename them accordingly, of course.

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top