User61956409 posted
Hi pavi90,
You could refer to the following sample to specify a border for parent iframe.
<div>
Main Page
<br />
<iframe id="myiframe" src="ChildPage.aspx"></iframe>
</div>
ChildPage
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script>
function myfunction() {
parent.document.getElementById("myiframe").style.border = "1px solid #ccc";
}
</script>
</head>
<body onload="myfunction()">
<form id="form1" runat="server">
<div>
I'm Child Page
</div>
</form>
</body>
</html>
Best Regards,
Fei Han