Hi friends,
I am opening a popup window with window.open method. I want to hide it, someting like visible=false. is there some property or method available which solve this purpose.
Thanks,
Amit
9 10304
You cannot open a new window with javascript that is hidden, positioned off screen, or smaller than a minimum size.
Hi friends,
I am opening a popup window with window.open method. I want to hide it, someting like visible=false. is there some property or method available which solve this purpose.
Thanks,
Amit
Why do you want to hide the window? Can you not just close it and open it again?
I am opening a url (asp.net page) from window.open which I am resizing if the loaded url document is bigger or smaller than the opened window, but my user didn't liked this resizing of the window. so, I thought if i could open the window with hide attribute set initially and after resizing if I could display it then users will not see the resizing effect.
any suggestions ?
You don't need to resize the window, you can open the window the correct size in the first place. -
window.open('yourpage.asp','','width=200,height=100')
-
See this page for more info.
problem is my asp.net page will be of varying width and height and before calling in window.open method I can't get its full height and width.
Amit
Then how will you get the height and width after calling the page?
problem is my asp.net page will be of varying width and height and before calling in window.open method I can't get its full height and width.
Amit
Well even if you donot know the height and width in advance still you can specify a certain height and width and keep scrollbars, will that help?
[HTML]window.open(url,"mywindow","location=1,status=1,sc rollbars=1,width=500,height=300");[/HTML]
Then how will you get the height and width after calling the page?
document.getElementById(id).offsetWidth
Well even if you donot know the height and width in advance still you can specify a certain height and width and keep scrollbars, will that help?
[HTML]window.open(url,"mywindow","location=1,status=1,sc rollbars=1,width=500,height=300");[/HTML]
no abctech, I don't have to show scrollbar to the users.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Code Monkee |
last post by:
How can the toolbar and menubar be hidden in IE?
When opening the window via javascript I can specify
'toolbar=no,menubar=no', which works fine.
However if the window already exists how can I...
|
by: Greg Williams |
last post by:
Anyone know a way to hide all IE's toolbars when and
ASP.NET page loads?? should I do this with Javascript or
can I use C# to do this.
thanks
|
by: Danielb |
last post by:
I want my application to run most of the time as just an notify icon
visible in the system tray, with some dialogs windows that open if the user
selects an option from the context menu on the tray...
|
by: hazz |
last post by:
What are the basic mechanisms behind an auto-hiding window which moves out
of the way when not needed and flys back out when clicked on. Is this real
complicated stuff?
Thanks, -hazz
|
by: Kevin |
last post by:
I've got a timer on my MDI parent form. If there's no mouse movement
for a set number of minutes, the Visible property of all open forms is
set to False and the Log On form is displayed. I could do...
|
by: Jon |
last post by:
Hi,
I am calling the function showpopupWindow(item) to open and write a
popup window. When testing in IE6 locally the popup window displays my
text in both the title and status bars but when...
|
by: G Gerard |
last post by:
Hello
I am using MSACCESS 2000
I can hide Tables from appearing in the Database Window with the following
code:
For Each tbldef in MyDB.TableDefs
tbldef.Attributes = dbHiddenObject
Next...
|
by: Andy Lim |
last post by:
Hi all,
In my recent asp.net (2.0) project, I want to give a desktop-application
look and feel to my users.
I think I'll do it by hiding the browser's default menu & toolbar right from
the...
|
by: BA |
last post by:
Hi there
I am trying to write an "application" in Access 2000, that displays a front
end and allows the user to interact with the database without seeing Access
loaded, in the background, nor on...
|
by: Sh4wn |
last post by:
Hi,
first, python is one of my fav languages, and i'll definitely keep
developing with it. But, there's 1 one thing what I -really- miss:
data hiding. I know member vars are private when you...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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:
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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,...
| |