简体   繁体   中英

Pass parent URL to form field within iframe

I have the same contact form iframe from one domain on multiple pages at another domain. I'd like to be able to capture the parent page URL in a field in my iframe form. Is this possible? I'd prefer to use javascript.

document.referrer将保存父URL

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM