Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change properties of open window

Status
Not open for further replies.

keenanbr

Programmer
Oct 3, 2001
469
IE
Is it possible to add scrollbars to an open window. I have a web application which opens up Outlook Calander entries. I need to add scrollbars to the form because on some screens where the resolution is 800X600 the full form is not shown. I must admit I don't know the app very well but the first thing it does is resize and reposition the form thus;


<script language=javascript>
window.moveTo(120,10);
window.resizeTo(screen.width-240,screen.height-40);
</script>


Is it possible to add scrollbars at this stage (this code is in a .asp).

Thanks in advance,


 
When you are opening the window, I believe you can specify at that point if scrollbars appear... so look for where your "window.open" command is being run.

The 3rd parameter [to window.open] is the one you're after... you can either specify "scrollbars=yes" or "scrollbars=no".

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Yes, I realize that but I don't know from wher the window is opened.
 
It's call from Outlook OWA. I don't know from where.
 
The solution was very simple. OWA uses a stylesheet (OWAstyle20.css). It was simply a matter of editing

.noteBody, .previewBody
{
BACKGROUND-COLOR:buttonface;
MARGIN:0;
OVERFLOW:hidden;
PADDING:0px 0px 0px 5px;
}

and changing to

OVERFLOW:scroll;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top