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
4 3761
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.
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: - window.resizeTo(screen.availWidth,screen.availHeight);
-
window.moveTo(0,0);
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: - window.resizeTo(screen.availWidth,screen.availHeight);
-
window.moveTo(0,0);
Thank you for your suggestion, I think it will solve my problem.
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
by: Raghavendra |
last post by:
Hi All,
Here is my code.
-------------------------------------------
<div style="height:100%">
<BODY>
sample text spanning about 30 lines
</BODY>
</div>...
|
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'...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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: 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: 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: 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...
| |