如何获得网站的主机名IFrame嵌入
how to get hostname of the website IFrame is embedded in
如何获得网站的主机名Iframe嵌入到使用jquery?例如iframe
<iframe src="xyz.com/123" frameborder="0" allowtransparency="true" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen" oallowfullscreen="oallowfullscreen" msallowfullscreen="msallowfullscreen" width="640" height="400"></iframe>
试试这样写:
$("iframe").attr("src");
或者查找父URL
$(function(){
var currentUrl = document.referrer;
alert(currentUrl)
});
相关文章:
- 带有iframe嵌入的Android WebView;t显示在4.2.2及以下
- 使用iFrame嵌入私有Google文档
- 动态渲染 .mht 文件,无需加载/iframe/嵌入
- 是否可以打开一个新窗口并将iframe嵌入其中
- Youtube播放器iframe嵌入不适用于我的频道
- 用于 iFrame 嵌入的 youtube 参考 API 未加载 iFrame
- 某些 YouTube iframe 嵌入在 HTML5 模式下不起作用
- 创建 iframe 嵌入并使用模态
- 完全使用 iframe 嵌入页面,没有边框,在边框曾经的位置没有空格
- 使用 Iframe 嵌入 csv 并允许用户从中搜索
- Youtube iframe嵌入加载flash播放器,而不是HTML5播放器
- 谷歌在通过iframe嵌入时映射错误
- YouTube iframe嵌入中特定时间的链接
- 如何检测如果一个网站不能通过iframe嵌入
- 尝试编写Javascript循环通过YouTube iFrame嵌入
- 检查用户是否点击了iframe嵌入的youtube视频
- 如何获得网站的主机名IFrame嵌入
- 如何在页面加载时使用jQuery将youtube视频url转换为iframe嵌入代码
- 检测鼠标和键盘事件在iframe嵌入PDF
- 使用 iframe 嵌入 D3.js