Ok

MSDN says you can do this but I can not for the life of me get it to work.
I am trying to dunamicaly set the scrolling property of an IFRAME.  I can
get the value, i can set the value, but the IFRAME its self does not seem to
take on the property.  I set it to scrolling=no and it still scolls

Code below
==========================================================


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
        <title>Untitled</title>
</head>

<body>

<iframe name="myiFrame" src="bla.html"></iframe>
<br clear="all">
<script>
        o = window.frames[0].frameElement;
        function overF()
                {
                if(o.scrolling == "no")
                        {
                        o.scrolling = "yes";
                        o.height = "100";
                        }
                else
                        {
                        o.scrolling = "no";
                        o.height = "200";
                        }
                }
</script>
<input id="b" type="Button" onclick="overF(); this.value = o.scrolling;">
<br>
<script>
        document.all.b.value = o.scrolling;
        for (p in o)
                {document.write(p + " = " + o[p] + "<br>");}
</script>

</body>
</html>


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to