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!
12 5898 @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.
Yeah i know that ...but what are the properties ........... how can i set those properties ???
Note that some properties can only be set with window.open or before a window is opened with the required privileges.
@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?
See, for example, window.menubar. You'll need privileges unless the script is signed. The rest of the *bars can be toggled similarly.
@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?
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?
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.
I assume this is for an internal application. You can use screen.height/width to make it full screen.
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!
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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'"...
|
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 |
+---+---+
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
|
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,...
| |