Click to See Complete Forum and Search --> : Opening a fixed size, No scroll bar, No IE control/menu on click of a hyper link.


kapil
03-14-2002, 03:42 AM
I want to open a window (With No scroll bar, No resizable, fixed height and
width, No IE bottons or menu) on click of a asp.net web control hyperlink.

I know it's easy to open a window using "window.open" method of javascript
and we can also attach parameters for size and scrollbar.but Here I am not
using javascript and calling another page using "navigateUrl" property
of the hyperlink

Guillermo Baliari
08-29-2002, 06:50 AM
I don't know....
You can't take the user browser control from the server without client
scripting...
no yield... but, if you obtain one method, please, leve an message!

may
08-29-2002, 10:53 PM
"Guillermo Baliari" <baliari@hotmail.com> wrote:
>I don't know....
>You can't take the user browser control from the server without client
>scripting...
>no yield... but, if you obtain one method, please, leve an message!
>
>
Hi try the following:

function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,toolbar
= 0, resizable=1,scrollbars=1")')
}

//configure URL and window dimensions (width/height)


//To load via link, use something like below:
//<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>

may
08-29-2002, 10:53 PM
"Guillermo Baliari" <baliari@hotmail.com> wrote:
>I don't know....
>You can't take the user browser control from the server without client
>scripting...
>no yield... but, if you obtain one method, please, leve an message!
>
>
try this...

function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

//configure URL and window dimensions (width/height)


//To load via link, use something like below:
//<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>