473,327 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

scrollbars in window.open()

After i open a new window can i show scrollbars ???
(if an image is bigger than my screen)

Something like :

xxx(a,b) {
if (a < b){
self.scrollbars = true;
} else {
self.scrollbars = false;
}
}

well, the example does not work, but is there a way to do something like
that ???

Thanks,
Vagelis

May 13 '06 #1
4 2939
vagos wrote:
After i open a new window can i show scrollbars ???
(if an image is bigger than my screen) <snip> well, the example does not work, but is there a way
to do something like that ???


No. But if you opened the window then it was you who would have disabled
the scroll bars in the first place, so stop doing that an your (current)
problem no longer exists.

Richard.
May 13 '06 #2
JRS: In article <1147528609.930345@athnrd02>, dated Sat, 13 May 2006
16:56:51 remote, seen in news:comp.lang.javascript, vagos
<va***@freemail.gr> posted :

xxx(a,b) {
if (a < b){
self.scrollbars = true;
} else {
self.scrollbars = false;
}
}

That could be better coded as

function xxx(a, b) { self.scrollbars = a < b }

and you could include return to discover the result. But it will not
work any better.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
May 13 '06 #3
vagos wrote :
After i open a new window can i show scrollbars ???
(if an image is bigger than my screen)

Something like :

xxx(a,b) {
if (a < b){
self.scrollbars = true;
} else {
self.scrollbars = false;
}
}

well, the example does not work, but is there a way to do something like
that ???

Thanks,
Vagelis


The answer to your query is right here:

http://developer.mozilla.org/en/docs...ality_features

and also here:

http://developer.mozilla.org/en/docs..._on_scrollbars

Gérard
--
remove blah to email me
May 14 '06 #4
Dr John Stockton wrote :
function xxx(a, b) { self.scrollbars = a < b }


This will only work in older Mozilla-based browsers and only if the user
grants enhanced security privileges to the script to begin with.

Gérard
--
remove blah to email me
May 14 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: adrien | last post by:
Hi, (also posted in netscape.public.mozilla.browser) i use netscape 7 and want to hide the scrollbars of the window when something happens. I tried this: window.scrollbars.visible=false...
24
by: Nobody | last post by:
Okay, you are all so smart in here. Answer me this: IE6 in standards mode doesn't seem to hide scrollbars on the body element (overflow:hide) Ain't this a quandary. I have it in my head that I...
4
by: Koyan | last post by:
Hallo everybody, I have in my website administration pages the following script: function openWin(){...
5
by: Dennis M. Marks | last post by:
My script opens a window that is supposed to be resizable and scrollable. I am on a Mac. With IE 5.1.7 it works fine. With Netscape 6 there is no scroll bar. I am able to resize it smaller than the...
1
by: leiko | last post by:
how can I get a vertical scrollbar in Netscape Navigator when I open a new window ? window.open('newpage', 'pagename','width=420,height=320, scrollbars=yes status=no') seems to work only with IE.
10
by: GTi | last post by:
I have a popup window, If this window is to smaal the scrollbars is visible. Is there any JavaScript available so I can check if the scrollbars is visible on page (right and bottom side)? Then I...
2
by: needin4mation | last post by:
Does anyone know what would cause a popup with scrollbars=1 to suddenly lose its scrollbars? I have a popup from window.open (....scrollbars=1..) and it used to be a normal window that would have...
9
by: loga123 | last post by:
I am using asp .net 2.0. I have a hyperlink asp control on my web page page1.aspx. On clicking this hyper;link, I would like to open page2.aspx (which is in the same web application) in a new IE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.