Allow iFrame Transparant Background

iFrame Background Transparency

This below code written with the combination of HTML and javascript is to set the iFrame with the given background color and customized width and height for the website which you want to display it in the iFrame. This is the onLoad Javascript function and its properties which will let you customize the iFrame as the way you want

Javascript Code for iFrame Setup


<html>
<head>
<script>
function functiontrans() {
document.all.framenormal.allowTransparency = "true";
document.all.framenormal.style.backgroundColor = "white";
}
</script>
</head>
<body onLoad="functiontrans();">
<iframe id="framenormal" src="http://www.nscraps.com" allowTransparency="true" style="width:400; height:250;"></iframe>
</body>
</html>


Related Topic What is OSI Model and its Layers in Communication System
Unique Features of Android Development Platform
What are all the Types of Android Applications
Factors to be considered for Developing Application Software for Mobile Devices
How to Change font color in Linux terminal window

nScraps.com 2011   Privacy Policy  Terms of Service  Feedback