473,785 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 13645
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******** *************** ***********@mic rosoft.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="javas cript" type="text/javascript">
function onLoad() {
window.open"Log inPage.aspx", "servername ",
"width=1000px,h eight=740px,too lbar=no,locatio n=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******** *************** ***********@mic rosoft.com...
I found this javascript code which seems to work great.

<script language="javas cript" type="text/javascript">
function onLoad() {
window.open"Log inPage.aspx", "servername ",
"width=1000px,h eight=740px,too lbar=no,locatio n=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
9670
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 size was changed. How can I make the scrolling content "stick" the position with respect to the scrollowing box? Your advise is appreciated. Spencer
1
9545
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 defaults to whatever size the user sized it to last time he used Access. This results in my app's interface not looking right. Of course the user can resize the window, but many users don't know how or don't have the inclination to adjust it. This...
1
2291
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 of the photo is displayed in its own popup window - AND the popup window size matches the photo size (i.e., no white space). What I'd like to know is to get the popup window size to match the photo size. ...
5
14253
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
1491
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 the following. In the constructor I call Util.LoadPosition(control) which reads in the position and size
4
6178
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 my transparent app but cannot get the size and position of the other app. I can get the handle of the other app using the DllImport("user32")...FindWindow method. However, when I try to get this size/position of this other window using...
7
32120
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
5176
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 controlrol to always be in the center of the page. How can I do this? I use position:absolute to get the asp.net login control on top of the image, but then when the IE window size is changed (by the user) the login control does not center. Here's...
3
2443
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 don't see how to do that in php. The file I want to open is "detail.php?item=$item". This generates a query, which results in a table of at most 5x3 items. I want a window size that is of an appropriate size. I tried: <HEAD> <SCRIPT...
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9484
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10350
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, 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...
0
10157
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 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...
1
10097
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,...
0
6742
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();...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5518
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
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 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.