When making HTML pages, we often encounter "If the current page is displayed in an iframe, we will handle it accordingly"
The judgment method is:
//判断是否在iframe中 if(self!=top){ parent.window.location.replace(window.location.href); }
The above html determines whether the current page is in an iframe The examples in are all the content shared by the editor