new window script question

  • Thread starter Wolf and Billie
  • Start date
W

Wolf and Billie

Hi everyone,

I'm by no means a javascript expert, but frequently use a few lines to
create a new browser window in which the actual site can be viewed:

function start(page) {openwin = this.open(page, "ctrlwindow",
"toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,
width=600,height=500");}

The problem I'm having is that in Netscape this displays perfectly, but
in IE I'm getting scroll bars in every frame of the page. Is there a
simple solution for this or should I just buckle up and finish teaching
myself css? (I'm already using a 0 body-margin css line, which does the
trick in Netscape.) Dropping the frames will probably be a suggestion as
well.

Any information or help would be appreciated. Thanks in advance!
Wolf
 
R

Reply Via Newsgroup

Wolf said:
Hi everyone,

I'm by no means a javascript expert, but frequently use a few lines to
create a new browser window in which the actual site can be viewed:

function start(page) {openwin = this.open(page, "ctrlwindow",
"toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,
width=600,height=500");}

The problem I'm having is that in Netscape this displays perfectly, but
in IE I'm getting scroll bars in every frame of the page. Is there a
simple solution for this or should I just buckle up and finish teaching
myself css? (I'm already using a 0 body-margin css line, which does the
trick in Netscape.) Dropping the frames will probably be a suggestion as
well.

Any information or help would be appreciated. Thanks in advance!
Wolf

Your window.open I believe should use scrollbars=0 instead of scrollbars=no

Secondly - you say that you are getting scrollbars in every frame - Do
you mean every window, as opposed to every frame (frames can exist
inside windows)? If you mean every frame, then that has something to do
with the <FRAME> and <FRAMESRC> tag and not javascript.

randelld
 
M

Michael Winter

Wolf said:
function start(page) {openwin = this.open(page, "ctrlwindow",
"toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,
width=600,height=500");}
[snip]

Your window.open I believe should use scrollbars=0 instead of
scrollbars=no

You can use any of

scrollbars=yes
scrollbars=1
scrollbars

to include scrollbars (or any other boolean feature), and any of

scrollbars=no
scrollbars=0

or omit the scrollbars string entirely (the inverse of last line of the
first group) to remove the scrollbars.

[snip]

To the OP: there are very few reasons why you should ever remove chrome
elements from the browser, especially the ability to scroll or resize a
window.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top