Hi, I am new to JS and I have this requirement in my project. On click of a link from the window, we are to open a new window. While opening the window it has to be dynamically adjusted according to the screen's width & height.
I have already tried document.documentElement.offsetHeight, screen.Height, document.body.offsetHeight etc... I am more concerned on getting the height correctly. It should open to the window's height and width in different systems based on its different resolutions.
It will be open in IE only.
I am not sure whether this is the right place to post, or whether this has already been discussed a lot of times. I am not aware of where to search at this moment. Please let me know how this can be done. Many thanks...
var winHeight=document.documentElement.offsetHeight;
var winWidth=document.body.offsetWidth;
window.open(oSafeURL,"_blank","resizable=1,status=1,scrollbars=1,width="+winWidth+",height="+winHeight+",left=0,top=0");