473,396 Members | 2,099 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,396 software developers and data experts.

Change the window style using JS.

dmjpro
2,476 2GB
Suppose if i do window.open then the styles(features) can be set in feature parameter. If the system opens the window then how can i set the styles(features) using JS. I mean can i access the styles(features) of the current window using JS?

Please help me out!
Feb 3 '09 #1
12 5898
Dormilich
8,658 Expert Mod 8TB
@dmjpro
if your opened window is a html file, you can use JS to pretty much changing all you want. you only need to find the right JS properties for that.
Feb 3 '09 #2
dmjpro
2,476 2GB
Yeah i know that ...but what are the properties ........... how can i set those properties ???
Feb 3 '09 #3
Dormilich
8,658 Expert Mod 8TB
consult your favourite JS reference. e.g. window object – MDC
Feb 3 '09 #4
acoder
16,027 Expert Mod 8TB
Note that some properties can only be set with window.open or before a window is opened with the required privileges.
Feb 3 '09 #5
dmjpro
2,476 2GB
@acoder

Can't i do that after window opened?
I want to remove the status bar(in IE,because in Mozilla it does not happen) ...menu bar or something else. To set the height and width we can do it using resizeTo. So if i want to remove the menubar and addressbar ..what should i do to get that?
Feb 3 '09 #6
acoder
16,027 Expert Mod 8TB
See, for example, window.menubar. You'll need privileges unless the script is signed. The rest of the *bars can be toggled similarly.
Feb 3 '09 #7
dmjpro
2,476 2GB
@acoder
What you told over here ...could not get you.
One more thing if want to place the window ..at a particular position then how can i do?
Feb 3 '09 #8
acoder
16,027 Expert Mod 8TB
It's explained in the link, but see this link for more information.

To move the window, use window.moveTo() - linked from the link posted by Dormilich earlier. Any reason why you're messing with the current window?
Feb 3 '09 #9
dmjpro
2,476 2GB
Ahh ....aaa ....moveTo i couldn't remember ... ;)
Actually i making it as full screen .... actually our window containing a lot of things .. so it would be better if i get some spaces ...
Actually firstly main window opened as new window(there all the features i could set) .. now .... no new window is opening ..that's why i wanting to the first window (opened by system) be as full screen ...
By the way .. if it is taking a lot of effort then it would be better to redesign a little bit of the main window ... ;)
Actually whenever the security comes in then it should not be doing that ... if no other options is there.
Feb 3 '09 #10
acoder
16,027 Expert Mod 8TB
I assume this is for an internal application. You can use screen.height/width to make it full screen.
Feb 3 '09 #11
dmjpro
2,476 2GB
Actually what i did, just called resizeTo(screen.width,screen.height) and moveTo(0,0). I think more than this nothing we can do. As per bar toggling concern i think there is another hurdle(change security policy) to do. Common user can't do that. We are serving the page to common user.
Anyway i managed my main screen to work. Thanks for your help Acoder!
Feb 4 '09 #12
acoder
16,027 Expert Mod 8TB
By common user, do you mean on the internet (outside your company intranet) for any user to access? If that's the case, I would avoid resizing the browser. Some tech-savvy users will have changed their settings to make sure your script can't change the size of the browser.
Feb 4 '09 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Csaba2000 | last post by:
How do I detect when the font size has been changed (especially by user action: either Ctrl+Scroll wheel or View/Text Size)? This is just for use on IE 5.5+, but it would be great if there was a...
3
by: Csaba2000 | last post by:
I have set onmousedown to change the cursor, but this setting is ignored (IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the mouse button is released. On Opera 7.01, the setting...
2
by: RWD | last post by:
I am trying to figure out how to change the target frame in my hyperlink on a DHTML menu. The menu is in one frame and the target frame is called "main" The code is below: Thanks in advance...
3
by: michael | last post by:
I'm changing colors of table cells like this: <style type="text/css"> ..over {background-color: #bedddc} ..out {background-color: #99cccc} </style> <td onmouseover="this.className='over'"...
3
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
2
by: Tony Meier | last post by:
I am using the WebBrowser control (Explorer.Shell.2) from within a VBA application, embedded on an MS Access form to display the contents of a local folder. By default on Windows 2000/XP the...
2
by: tom | last post by:
Hi there, In IE, I am trying to govern various style attributes of a DIV tag with javascript. It's no problem doing things like this: 'window.xxx.style.top="100px";' but when I try to change...
7
by: Tim Rogers | last post by:
Hi folks, this is a resolution-detect script that I used on a site. As you can see it is designed to detect when the screen resolution falls below a certain level then load an alternative style...
2
by: rockdale.green | last post by:
Hi, I do not know where should I start to solve this problem. I have a calendar inside a div on my webpage which will show /hide when user click a button. but the button is almost at the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.