Click to See Complete Forum and Search --> : configuring a window (srollbars and whatnot) when it opens or arrives at a site


Wozza
06-15-2003, 05:09 PM
Wasabi! (it's a green sauce)

If I have a link on my page, and that link is to launch a new window, I can configure it with javascript, so it is a certain size and has no scrollbars and so on.

The problem is, I don't understand how to apply some of that script to a page, so that it activates when the page is loaded.

I know that having resizeTo and moveTo in the HEAD area will resize to and move to when the page loads. Can I apply the 'config' bit to this page also?

Hope all of that makes sense, I'm kinda new to this, and trying to use Frontpage for some of it has already done my head in (go notepad!) =P

Cheers-
Wozza

Jona
06-15-2003, 05:37 PM
You can't edit the properties of a window onload. You can only edit those properties if you open a new window. Besides, don't you think doing that would annoy people? I mean, you're changing their personal settings, and that's not why Javascript was built.

Jona

diamonds
06-15-2003, 06:36 PM
Explain to me exactly what you are doing and I cam make a script...

javascript can:

move a window around the screen
resize a window
close a window
add/remove the bottom scrollbar
add/remove the right scrollbar
and... add/remove both scrollbars

choose as many as you want:)

Wozza
06-15-2003, 10:07 PM
It's not my intention to annoy anyone. I simply want to get rid of the vertical scrollbar, as it will never be used on this particular page, and I'm the sort of pedantic wee ****e who doesn't like useless bits and pieces on a page =P
Thanks for the quick repiles
-Wozza

Jona
06-16-2003, 10:12 AM
<body style="overflow:none;">


Jona

Wozza
06-16-2003, 06:31 PM
Many thanks =)

Jona
06-16-2003, 06:39 PM
Wait, the above doesn't work (if it does, it only works in IE). Use this:


<body style="overflow:hidden;">


Jona