Sample code to reproduce this issue
The following is an example of the code that you can use in a frame of a webpage to set and retrieve the width of the frame:
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>IE8 Frameset Cols Test</title>
<script type="text/javascript">
function get_col_width()
{
alert(parent.document.getElementById('ParentFrame').cols);
}
function set_col_width()
{
parent.document.getElementById('ParentFrame').cols = '100,*';
}
function set_col_width_pcnt()
{
parent.document.getElementById('ParentFrame').cols = '10%,*';
}
</script>
</head>
<body>
<button onclick="get_col_width()">Get Col width</button>
<button onclick="set_col_width()">Set Col width to (100,*)</button>
<button onclick="set_col_width_pcnt()">Set Col width to (10%,*)</button>
</body>
</html>
In this example, you have the following three buttons:
- The Get Col width button. You click this button to receive a message that shows the width of frames.
- The Set Col width to (100,*) button. You click this button and then manually drag the frame splitter to set the width of frames in pixels.
- The Set Col width to (10%,*) button. You click this button and then manually drag the frame splitter to set the width of frames in percentage.
However, you notice the following:
- If you click the Set Col width to (10%,*) button and then drag the frame splitter, you receive the correct width of frames.
- If you click the Set Col width to (100,*) button and then drag the frame splitter, you may receive the wrong width of frames.
For more information about the
COLS�attribute, visit the following Microsoft website:
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684
Description of the standard terminology that is used to describe Microsoft software updates