473,407 Members | 2,598 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,407 software developers and data experts.

set window size and position

Hi,
I was wondering if there was a way to set the browser window size and
position of my asp.net website.. also if i could hide the address bar and
buttons...
this way i would have more room on my page for all to see...
thanks for the help!

--
Ad****@hotmail.com
Nov 19 '05 #1
5 13624
Client side using JavaScript, you could play with position/size but AFAIK
you can't do anything for buttons and the like.

Geenrally it's likely better to have a reasonablme design but to let users
to see your site how *they* want rather than how you imagine they would like
to see it... It's likely why you can't do much client side.

Patrice

--

"ACaunter" <Ad****@hotmail.com> a écrit dans le message de
news:62**********************************@microsof t.com...
Hi,
I was wondering if there was a way to set the browser window size and
position of my asp.net website.. also if i could hide the address bar and
buttons...
this way i would have more room on my page for all to see...
thanks for the help!

--
Ad****@hotmail.com

Nov 19 '05 #2
Hi,

You can control the browser look by using javascript but only by opening a
new window. There may be a way to do this but I am unaware of it. You may
want to look at some website design articles to determine if this is what you
really want to do. It has been my experience that if you take away the
address bar users tend to get frustrated with the design.

I have posted a link to a tutorial for you. Once you have the script
written you can pop a new window with your website in it and then close the
parent window from the child.

I hope this helps.

-----------------------------

http://tech.irt.org/articles/js205/index.htm
Nov 19 '05 #3
I found this javascript code which seems to work great.

<script language="javascript" type="text/javascript">
function onLoad() {
window.open"LoginPage.aspx", "servername",
"width=1000px,height=740px,toolbar=no,location=no" );
}
</script>

The reason I am doing this is because the website that we are building is
not for everyone.. it's for clients who will be logging onto the site and
using it the whole day.. they don't need the address bar to go anywhere else,
or if they do, they can just open a new window :p
"Brian Brown" wrote:
Hi,

You can control the browser look by using javascript but only by opening a
new window. There may be a way to do this but I am unaware of it. You may
want to look at some website design articles to determine if this is what you
really want to do. It has been my experience that if you take away the
address bar users tend to get frustrated with the design.

I have posted a link to a tutorial for you. Once you have the script
written you can pop a new window with your website in it and then close the
parent window from the child.

I hope this helps.

-----------------------------

http://tech.irt.org/articles/js205/index.htm

Nov 19 '05 #4
Great! I am glad that you got the answer that you needed.

Cheers
Nov 19 '05 #5
With IE, they could press the F11 key when needed (kiosk mode)...

Patrice

--

"ACaunter" <Ad****@hotmail.com> a écrit dans le message de
news:9E**********************************@microsof t.com...
I found this javascript code which seems to work great.

<script language="javascript" type="text/javascript">
function onLoad() {
window.open"LoginPage.aspx", "servername",
"width=1000px,height=740px,toolbar=no,location=no" );
}
</script>

The reason I am doing this is because the website that we are building is
not for everyone.. it's for clients who will be logging onto the site and
using it the whole day.. they don't need the address bar to go anywhere else, or if they do, they can just open a new window :p
"Brian Brown" wrote:
Hi,

You can control the browser look by using javascript but only by opening a new window. There may be a way to do this but I am unaware of it. You may want to look at some website design articles to determine if this is what you really want to do. It has been my experience that if you take away the
address bar users tend to get frustrated with the design.

I have posted a link to a tutorial for you. Once you have the script
written you can pop a new window with your website in it and then close the parent window from the child.

I hope this helps.

-----------------------------

http://tech.irt.org/articles/js205/index.htm

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: spencer | last post by:
Hello, I have an index page with an autoscroller writen with CSS. The problem is the scrolling content(text and inages)'s position is correct but will off position when the broswer(IE) window...
1
by: deko | last post by:
When a user opens my Access database application, I would like the application window to be a certain size (but not maximized). Currently, when my app is first opened, the application window...
1
by: Kenny | last post by:
The following link will take you to menu of photo galleries. If you open any of the photo galleries you will see that each contains thumbnails. When a thumbnail is clicked, the full-sized version...
5
by: Just D. | last post by:
How can we get the browser window size from C# codebehind? What's the easiest way to do that? Just D.
0
by: jkristia | last post by:
I'm completely lost right now, and can't figure out how to solve this problem. I want my app and dialogs to show up in the same position and same size as when they were closed. For that I do...
4
by: BrianKE | last post by:
I am attempting to create an app that will run "on top" of another app. My app will create a transparent window over the other app for the purpose of displaying information. I am able to create...
7
by: John Fox | last post by:
Dear All, How do I set the size of the window that is showing the database forms? can't find any helps on it. John Fox
1
by: jobs | last post by:
I have a simple login page with roughly a 300px x 300px image behind the asp.net login control. I need the login control to land in the middle of the image. I want both the image and the login...
3
by: Annette Block | last post by:
I'm rather new in JavaScript, but I have some experience in php. I learned it's rather easy to open a window of a specified size with JavaScript, that you need to specify the opened file, but I...
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: 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...
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
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...
0
agi2029
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,...
0
isladogs
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...

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.