Código Javascript
:
Ver original<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Prueba</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
$(function(){
    existe = $("#idIframe").contents().find("#divIframe").length;
    if(existe){
        alert("existe");
    } else {
        alert("No existe");
    }
});
</script>
</head>
<body>
    <iframe id="idIframe" name="iframeXCambiar" src="otro.jsp" height="50px"></iframe>
</body>
</html>