<html>
<head>
<style type="text/css">
html, body
{
overflow: hidden;
}
</style>
</head>
<body onload="showit( )" leftMargin="0" rightMargin="0" topMargin="0"
marginwidth="0"
marginheight="0 ">
<iframe id="myframe" src="http://www.yahoo.com" width=100% height=100%
FRAMEBORDER="0" ></iframe>
<script type="text/javascript" language="javas cript1.2">
<!--
function showit() {
myframe.focus() ;
//some other codes here
}
-->
</script>
</body></html>
In IE, works perfectly, in firefox, not automatically focus.
<head>
<style type="text/css">
html, body
{
overflow: hidden;
}
</style>
</head>
<body onload="showit( )" leftMargin="0" rightMargin="0" topMargin="0"
marginwidth="0"
marginheight="0 ">
<iframe id="myframe" src="http://www.yahoo.com" width=100% height=100%
FRAMEBORDER="0" ></iframe>
<script type="text/javascript" language="javas cript1.2">
<!--
function showit() {
myframe.focus() ;
//some other codes here
}
-->
</script>
</body></html>
In IE, works perfectly, in firefox, not automatically focus.
Comment