0

I am writing a program that has a sort of login window, i was looking for a way to resize the window so that it doesn't open so big with empty space. Any help is appreciated

3
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by IdanS
0

you can open a new window using javascript window.open method, it has parameter collection to resize the window.
you can search google with javascript window open resize

0

I am writing a program that has a sort of login window, i was looking for a way to resize the window so that it doesn't open so big with empty space. Any help is appreciated

window.open("ur"l, "title", "height=what you want,width=what you want")

you can add to the last string more settings of the opened window like status(yes/no), toolbar (yes/no), menubar(yes/no) and more...
you can check the list of available settings in this link:
http://msdn.microsoft.com/en-us/library/ms536651(VS.85).aspx
in the "sFeatures" section.

enjoy

0

window.open("ur"l, "title", "height=what you want,width=what you want")

you can add to the last string more settings of the opened window like status(yes/no), toolbar (yes/no), menubar(yes/no) and more...
you can check the list of available settings in this link:
http://msdn.microsoft.com/en-us/library/ms536651(VS.85).aspx
in the "sFeatures" section.

enjoy

I don't think i understand how to use this. Does this go in my Body tag or in the ASPX.cs file?

1

I don't think i understand how to use this. Does this go in my Body tag or in the ASPX.cs file?

to your body tag in a script tag

<body>

<script language="javascript">
window.open("","","")

</ script>
</ body>
0

to your body tag in a script tag
<body>

<script language="javascript">
window.open("","","")

</ script>
</ body>

I added this into my body tag and it still opens up with the normal window size.

0

I added this into my body tag and it still opens up with the normal window size.

post your code here please (the html source)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.