+
82
-

如何判断网页是否在inframe内打开?

今天发现别人到我的页面,请问如何通过js来检测我的网页在别人的iframe中呢?

网友回复

+
1
-

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>BFW NEW PAGE</title>

    <script type="text/javascript">

        //判断是否在iframe中
        if (self ...

点击查看剩余70%

我知道答案,我要回答