Link to home
Create AccountLog in
Avatar of elliottbenzle
elliottbenzle

asked on

how do I set the window size when user opens page in browser

In dreamweaver how do I set the standard size for the page to open in the browser? For example I want my home page to always open at 875px by 575px no matter who opens the page. Are there settings for this and if so how do I change them?
SOLUTION
Avatar of ale_jrb
ale_jrb
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of elliottbenzle
elliottbenzle

ASKER

if I use Javascript can I still use ASP to connect to my database or can I only run on scripting language at a time?
No - you can use both still. If you want, test it out, see how you like it, and if you don't - just revert back to a previous version.

Note that you'll have to either:
a) Rename your actual homepage, as index.html would be used to redirect.
or
b) Link to a random page like redirect.html, and have that open up your display page. You'd have to use redirect.html for all your links though.

Anyway... good luck!

-Ale_Jrb-
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Whoops, the behavior is "Open Browser Window"

Sorry about that.
Hey guys.  Sorry to argue but I don't believe it is good practice to force the size of a user's browser window!  Most users (me) just get hacked off and force the window to open full size anyway so it doesn't look like a pop-up ad!  The W3C are also advising designers to stop messing with the browser environment for the purpose of always showing toolbars/buttons etc.

If you need to display within that given size, you should use a DIV in your HTML code that contains all the information, but is restricted to that size.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body style="background-color:black;">
<div style="width:875px; height:575px; overflow:hidden; border:1px solid red;background-color:white;">
   All the content resides here
</div>
</body>
</html>
>>  Sorry to argue but I don't believe it is good practice to force the size of a user's browser window!  Most users (me) just get hacked off and force the window to open full size anyway so it doesn't look like a pop-up ad! <<

I agree, but if I want you to open a new window at 640x480, you are damn well going to get a new window at 640x480 with no rezise controls :)