【发布时间】:2013-08-28 01:35:12
【问题描述】:
我正在尝试将页面 URL 中的邮政编码值传递到同一页面上的 iframe。 页面网址是: mysite.com/page.html?zip=90210
并且我希望该页面上的 iframe 获得这样的邮政编码值: src="http://www.adifferentsite.com/iframedpage?go=1&zip_code=90210
我几乎已经使用 window.location.search 让它工作了,但它抓取了整个字符串,而不仅仅是值(一个 5 位数的邮政编码)。
我正在研究 javascript 解决方案,但也可以使用 php。
提前致谢! 蒂姆
【问题讨论】:
标签: iframe