javascript - IE8 window size problem -
i'm using javascript code :
function openquerywindow(val) { var wname = "...."; var srcheight = screen.height - 100; var srcweight = screen.width - 100; var dleft = 50 var dtop=25 var sfile="....."; window.open(sfile,wname,"scrollbars=1,location=0,status=0,menubar=0,toolbar=0,directories=0,resizable=0,width=" + srcweight + ",height=" + srcheight + ",top="+dtop+",left="+dleft+",alwaysraised") } this code works in pop-up window in ie7 doesn't work in ie8 , pop-up window seems uncontrollable! how solve this?
you can force ie8 render html ie7 does... add in close opening tag possible
<meta http-equiv="x-ua-compatible" content="ie=7" />
Comments
Post a Comment