Gracias Drive!
No quise escribir antes porque lo intente solucionar.. pero no puedo..
El codigo completo es este:
Código HTML :
<html>
<body>
<div id="cont">
<iframe id="iframeContent">
<html>
<body>
<div id="cont">
<iframe id="iframeContent">
<html>
<body>
<div id="cont">
<iframe id="iframeContent">
<html>
<body>
<div id="cont">
<div id="mensaje">
<div style="display: block;" id="DivPopUpUserMessages">
<div style="display: block;" id="DivWaitMessage">
</div>
<div style="display: block;" id="DivTextMessage">
<div style="display: block;" class="divtextc" id="DivText">
<span id="mensajespan"></span>
</div>
<div style="display: block;" class="divClose" id="DivButton">
<input type="button" class="Button" value="Cerrar" id="btnClose">
</div>
</div>
</div>
</div>
</div>
</body>
</html>
</iframe>
</div>
</body>
</html>
</iframe>
</div>
</body>
</html>
</iframe>
</div>
</body>
</html>
El problema que tengo es que cuando me tira el un div flotante (mensaje) me pone foco en el input id TEST, que esta debajo..
Código HTML :
<iframe id="iframeContent">
<html>
<body>
<div id="cont">
<input id="TEST" type="text"></input>
<div id="mensaje">
<div style="display: block;" id="DivPopUpUserMessages">
<div style="display: block;" id="DivWaitMessage">
</div>
<div style="display: block;" id="DivTextMessage">
<div style="display: block;" class="divtextc" id="DivText">
<span id="mensajespan"></span>
</div>
<div style="display: block;" class="divClose" id="DivButton">
<input type="button" class="Button" value="Cerrar" id="btnClose">
</div>
</div>
</div>
</div>
</div>
</body>
</html>
</iframe>
FOCO:
Código Javascript :
if (miiframe.contentWindow.document.forms['formTest']) {
miiframe.contentWindow.document.forms['formTest'].txtNombre.focus();
}
Como puedo sacar el foco del input al cargar el div?? Se te ocurre algo??
Gracias!!!!