Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Windows7+IE10 showModelessDialog problem

$
0
0

There arethree pages. (index.html, parent.html, popup.html)

--- index.html ---

<!DOCTYPE html>
<html>
<head>
<script language="javascript" type="text/javascript">
<!--

function Button1_onclick() {
    var sFeatures = "left=0,top=0,width=800,height=600,menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=yes";   
    window.open("Parent.html", "Parent", sFeatures);
}

// -->
</script>
</head>
<body>
    <div>
 <input id="Button1" style="font-size: 30px; width: 243px; height: 116px" type="button"
            value="Open Parent" language="javascript" onclick="return Button1_onclick()" />
    </div>

</body>
</html>

--- parent.html ---

<!DOCTYPE html>
<html>
<head>
<script language="javascript" type="text/javascript">
<!--

function Button1_onclick() {
    var sFeatures = "dialogleft:0;dialogtop:0;dialogwidth:400px;dialogheight:400px;help:no;scroll:no;resizable:no;status:no";
    window.showModelessDialog("Popup.html", window, sFeatures);
}

// -->
</script>
</head>
<body>
    <div>
 <input id="Button1" style="width: 225px; height: 121px; font-size: 20px;" type="button" value="showModelessDialog" language="javascript" onclick="return Button1_onclick()" />
    </div>

</body>
</html>

--- Popup.html ---

<!DOCTYPE html>
<html>
<head>
</head>
<body>
  <div style="font-size: 20pt">Modeless Dialog</div>
</body>
</html>

ModelessDialog hide behindparent window.

 This problem iscausedirregularly.

Whenanother IEwindow open,themore frequent.

 Theparent windowmenubar=yes,scrollbars=yesisdoes not happen.

 



Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>