Solution | original
Before encountered such a problem is very depressed, MS why developed such a bird ie, let these people have to follow him, and then think, also, in order to safety period, or to add restrictions, otherwise, others can casually change your Web page content, and so on ...
Well, the rest of the nonsense do not say, look at the bottom of the bar:
Remember to refer to the domain name as the domain name, not the WWW or any other, example: shagndu8.com and cannot point to www.shangdu8.com
1, please add the following code on the parent page:
1<script language= "VBScript" >
2 Document.domain = "shangdu8.com"
3</script>
2, please add the following code on the IFRAME page you want to set (this page can be placed on any server, can not be shagndu8.com on the server, such as: http://www.cnblogs.com/;
1<script language= "VBScript" >
2 Document.domain = "shangdu8.com"
3</script>
In this way, ie was cheated, fooled, haha, he thought is under the same domain, the IFRAME can allow the IFRAME adaptive height or assignment or other operation of the parent frame action.
Note: This code is small, but can solve the big problem, I have tested, please rest assured that use, if you want to set the IFRAME content in someone else's server, then want to complete this operation, haha, to change the content of the Web page, plus the above code can be.
If you have any problems in use, you can contact me
Email:jzeb#163.com
qq:4803234