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.

Make Window Height 100%

How to make a window page 100% using javascript or ajax , I want to make all pages height 100% in all resolution. I have small contents, so as I view this page in other resolutio I find this page small in height. How to solve this
Aug 23 '07 #1
4 3761
pbmods
5,821 Expert 4TB
Heya, Debadrita. Welcome to TSDN!

You posted this in the Articles section. I'll go ahead and move it to the Forum where an Expert will be more likely to find it.
Aug 23 '07 #2
acoder
16,027 Expert Mod 8TB
If you're using window.open to open a new window, you can set the width and height in the open() method.

If you want to resize the current window (though I'd advise against it), use screen.availHeight and screen.availWidth or just 'height' and 'width' as parameters to the resizeTo method:
Expand|Select|Wrap|Line Numbers
  1. window.resizeTo(screen.availWidth,screen.availHeight);
  2. window.moveTo(0,0);
Aug 23 '07 #3
If you're using window.open to open a new window, you can set the width and height in the open() method.

If you want to resize the current window (though I'd advise against it), use screen.availHeight and screen.availWidth or just 'height' and 'width' as parameters to the resizeTo method:
Expand|Select|Wrap|Line Numbers
  1. window.resizeTo(screen.availWidth,screen.availHeight);
  2. window.moveTo(0,0);
Thank you for your suggestion, I think it will solve my problem.
Aug 24 '07 #4
dmjpro
2,476 2GB
How to make a window page 100% using javascript or ajax
Welcome to TSDN.
You mentioned is that possible using AJAX?
Which forced you to say this?
You know what is AJAX?

Anyway try the code of ACODER it will work fine.
Best of luck with your code.

Kind regards,
Dmjpro.
Aug 24 '07 #5

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

Similar topics

3
by: Eric Osman | last post by:
Hi, When I run the following html file on netscape, and the button is clicked, the new window pops BEHIND all my other windows. How can I easily fix this html file so the window comes up in...
1
by: Ron Bott | last post by:
I have a layout that has a fixed size #container <div> with a shadow running along the right side that encloses the content area. I would like the shadow background to extend to the full height of...
6
by: Joakim Braun | last post by:
How do you give a <body> a 10px margin on every side, then a border? That is, an inset border. In the example below, the browsers I've tried interpret "width:100%" as 100% of the width including...
3
by: Raghavendra | last post by:
Hi All, Here is my code. ------------------------------------------- <div style="height:100%"> <BODY> sample text spanning about 30 lines </BODY> </div>...
4
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0'...
5
by: Dag Sunde | last post by:
I ran into a problem i just *know* I've seen described a 100 times before I have an empty (so far) div with ist height: set to 100%. The main reason for this div is to show its white border-right...
6
by: Howard Rifkin | last post by:
Hi, I my Javascript I popup an authentication window using the command; unamePasswdWindow = open("auth.html","","width=500,height=100"); This works fine in IE, and in Firefox 2.x on...
1
by: soms2m | last post by:
HELLO ALL, I want to fill the parent window height with respect to the sub window height which is loading using ajax (mootools). For example if the parent window height is normal and the loading...
11
tusovka
by: tusovka | last post by:
I have a container and 4 div’s inside it. My container is stretched to fill the entire window. In IE, if you resize the window all the content resizes correctly, with all 4 margins around 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
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?
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
Oralloy
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,...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.