Is there a way to auto resize the website, when using different browsers?
I was using this javascript earlier but i don't want to specify dimensions..... ...i would like it to automatically adjust according to the user's browser: -
<script language="javascript"> { window.resizeTo( 850,725 ) }</script>
But unfortunately this only works for IE and I want the window to resize according to the browser in use, coz the dimensions change in other browsers and there are blank spaces or sumthing in other browsers like firefox, which are not in IE.
I'm using this for my coursework, on a website......an d desperately need to get it work.
So is there a way so that window adjusts its size depending on the browser being used?
It would be a gr8 help .........thnx --------------------------------------------------------------------------------------
i found this coding as a result of sum searching: javascript: -
<script language="javascript"> function resize_window() { var width,height; if(typeof window.pageX){height = window.pageY;width = pageX;} else if(typeof window.screenX){height = window.screenY;width = screenX;} else {height=document.body.offsetHeight;width=document.body.offsetWidth;} } </script>
body tag:
[html]
<body onload="resize_ window()">[/html]
but again to no avail......any flaws in this piece of coding??
1 6427
the dimensions change in other browsers and there are blank spaces or sumthing in other browsers like firefox, which are not in IE.
You should never have to resize a browser because of this problem. Though you say the page works in IE, it is IE causing the problem. But without a link, or the complete web page markup, we can't help.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Charles Packer |
last post by:
From one of the online Javascript tutorials, I learned how to
open a new window and set its size. I'm building a page that has
several small photographs, and I want to let the viewer examine
either a full size image or an image with supporting detail.
It's the same idea used on lots of Web sites that show thumbnails
where you click on one and the full-size image is displayed in a
new window. However, I have different-sized images that will...
|
by: Theodore A. Jencks |
last post by:
Hi all,
I posted a question about a side navigation bar earlier where I was
encountering this problem. I thought I'd repost the question in a more
general format because I'm not sure people quite understood what I was
asking in my last post. Here is what I'd like to do:
1. Have a div tag that's soul purpose is to display a repeating background
image in the y-axis.
2. The div tag should also have a fixed width.
|
by: David Hayes |
last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the
browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12
AM):
>
> >I want to maximize the browser window when I open a new window.
>
> function expand() {
> window.moveTo(0,0);
> window.resizeTo(screen.availWidth, screen.availHeight);
> }
|
by: jdapro |
last post by:
Hi - thanks for reading this out there! I'll be quick about it:
I've got this row of images (in the end there will be more rows of pics
as well). When a user clicks on the image, I want a new window to open
with a larger version of the image. I want that new window to be
customized to the size of the new larger image. Also, when users go
back to see other images in their larger size, I want the new window
(assuming they never closed...
|
by: franz |
last post by:
hallo everyone,
i have a popup window 500x400px centered in the middle of the screen
and inside it there's a mini-photogallery.
what i want is to click on a thumbnail and open in the same window a page
that is fullscreen big and move to co-ordinates (0,0)
I've written some code to do that:
<script language="JavaScript">
<!--
function resize_()
| |
by: Dav Tan |
last post by:
Hi,
I need to pass some secure information (using ssl) to another website
(different domain) and at same time redirect user to that site. What is the
best way to do it? Thanks.
DT
|
by: Neo |
last post by:
Hello All,
I found that ASP.net website only accepts code withing site directory.
This creates big hurdle in shairng code. How to share code between two
websites, like the way share between two non-website code?
-Pravin
|
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' cellpadding='0' cellspacing='0'
style='border-collapse:collapse; width:100%; height:100%;'>
<tr><td colspan='2' style='height:3em; border-bottom:1px solid
|
by: Dr J R Stockton |
last post by:
I want page <URL:http://www.merlyn.demon.co.uk/js-quick.htmto open, in
IE6, IE7, Firefox 2, and wherever else practicable, with the control
labelled F.X0 fully visible at the top of the window and the control
F.Result (which is just under the textarea) fully visible at the bottom
of the window.
What's the right, or best, way to do that? It's right in IE6 at
present, and near enough so in FF2 if there's only a single tab. But
the "tab...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |