H
howa
Conside a simple html, has the information...
....
<script type="text/javascript" src="iframe-test.php"></script>
....
and iframe-test.php is as the following....
<?php
if ( rand() % 2 == 0 ) {
?>
var ifb1 = "Yahoo: <iframe id='ifb-yahoo' src='http://www.yahoo.com'></
iframe>";
document.write( ifb1 );
<?php
} else {
?>
var ifb2 = "Google: <iframe id='ifb-google' src='http://
www.google.com'></iframe>";
document.write( ifb2 );
<?php
}
?>
I found that when reload (F5), the iframe content get messed up, e.g.
Yahoo is displaying Google as iframe content and sometimes vice versa.
I have tested on both IE7 and FF3, both has this strange
error....Seems iframe contents are cached?
Any idea?
....
<script type="text/javascript" src="iframe-test.php"></script>
....
and iframe-test.php is as the following....
<?php
if ( rand() % 2 == 0 ) {
?>
var ifb1 = "Yahoo: <iframe id='ifb-yahoo' src='http://www.yahoo.com'></
iframe>";
document.write( ifb1 );
<?php
} else {
?>
var ifb2 = "Google: <iframe id='ifb-google' src='http://
www.google.com'></iframe>";
document.write( ifb2 );
<?php
}
?>
I found that when reload (F5), the iframe content get messed up, e.g.
Yahoo is displaying Google as iframe content and sometimes vice versa.
I have tested on both IE7 and FF3, both has this strange
error....Seems iframe contents are cached?
Any idea?