Click here to Skip to main content
15,917,174 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am using these properties for setting the frame height in the javascript:-

style.posTop = ((parent.screen.height / 2) - frameheight); 
style.posLeft = ((parent.screen.width / 2) - framewidth);


But, this is giving me different positions of the frame in the IE9 and IE8.How, can i set the frame position so that it is consistent with all the browsers.

Please help me.

Thanks in Advance.
Posted
Updated 13-Jul-11 19:05pm
v2
Comments
[no name] 14-Jul-11 1:05am    
Edited for CodeBlock.

1 solution

This is a HTML question, not an ASP.NET one. You need to find properties that work in other browsers. I didn't know there was a way to get the screen size, I bet it's new in IE8.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900