让iframe子窗体取父窗体地址栏参数(querystring)

时间:2021-01-21 12:16:51
【文件属性】:
文件名称:让iframe子窗体取父窗体地址栏参数(querystring)
文件大小:20KB
文件格式:PDF
更新时间:2021-01-21 12:16:51
IF iframe IN 代码如下:<html xmlns=”http://www.w3.org/1999/xhtml”> <head> <title>让iframe子窗体取父窗体地址栏参数(querystring)</title> [removed] function f(){ //http://localhost:4101/MyFiles/netshop/ShopType.aspx?tid=1 var url = [removed].href;//取得地址栏 var pos = url.indexOf(“tid”);//简单做个字符串处理,这里只有一个参数。

网友评论