|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Control the size and position of a popup window.The javascript uses window.open . The problem is that the height parameter appears to have a limit and i cannot go below that limit. code below: function Openwindow( postBack) { popUp = window.open('AfMedarbejder.aspx' , 'test', 'width=screen.width,height=15,left=0,top=700,'); } height remains approximately 100 no matter what . Can someone explain what i'm doing wrong? I also want my window to remain on top always. How di i do this? Many thanks in advance JB Try this... You can of course set the appropriate options to make the new
window do whatever you like by way of the DOM. My snippet below should center the popup window on the screen. //Open aspx page in new window function popup() { var popup_width=685 var popup_height=450 var screen_width=window.screen.width var screen_height=window.screen.height var popup_left=Math.round((screen_width-popup_width)/2) var popup_top=Math.round((screen_height-popup_height)/2) window.open("TARGET_URL_GOES_HERE + "","","height="+popup_height+",width="+popup_width+",menubar=0,resizable=no,left="+popup_left+",top="+popup_top+",scrollbars=no,status=no,titlebar=no,toolbar=no"); } Show quoteHide quote "Jensen bredal" wrote: > > > Hello,I lunch a popup window from an aspx file . > The javascript uses window.open . > The problem is that the height parameter appears to have a limit and i > cannot go below that limit. > code below: > > > function Openwindow( postBack) > > { > > > popUp = window.open('AfMedarbejder.aspx' , > > 'test', > > 'width=screen.width,height=15,left=0,top=700,'); > > } > > height remains approximately 100 no matter what . > > > > Can someone explain what i'm doing wrong? > > > > I also want my window to remain on top always. > > How di i do this? > > > > Many thanks in advance > > JB > > >
Other interesting topics
web application security
unicode characters in web form aspx pages, utf-8 DataGrid Sort Expression for a date in format 'dd mmm yy' getting web page - control and class to talk to one another is hard... New Cracked Software(cad,cae,cam,eda,pcb,gis,cfd,cnc...) Runing Client-side code Losing state on bound controls in user controls DataSet Disposal Urgent help needed in Regular expressions how to toggle the visibility of large chunks of a page |
|||||||||||||||||||||||