There's no real way to do this in HTML. HTML provides the structure and content of your webpage. You're trying to take control of the browser window and adjust it's position and size. That falls under the page's behavior and is controlled with Javascript.
To get on my soapbox for two seconds, since there may be very good reasons that your visitor has their browser set up the way they do (especially if they have accessibility needs), I try never to mess with these factors. However, they are relatively simple elements of the DOM and "shouldn't" cause problems for most people, though there are other things you can do in Javascript that are. I originally learned Javascript from a tutorial at
www.htmlgoodies.com and there are dozens of others. The functions you're trying to implement are pretty basic and probably wouldn't require more than about half an hour of study with a good javascript tutorial.
www.w3schools.com is probably the place I'd start.
The important thing with Javascript is to reference it with a script tag at the end of the file like this.
<script type="text/javascript" src="Scripts/MyScript.
js"></script>
</body>
</html>
Because of accessibility,
SEO, and people with Javascript turned off, it's best practices to put ALL your javascript in a separate *.
js file. And you have to call the script at the end of the document (unlike a lot of tutorials that may have you write your scripts embedded between the <head> tags at the top. That's better than writing inline scripts, but best practices is to separate the javascript out entirely.
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of
www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.