Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set static footprint of web page display ?

Status
Not open for further replies.

NewtownGuy

Technical User
Jul 27, 2007
146
US
Hello,

How do I statically set the footprint -- the number of pixels high and wide -- at which a web page displays on screen ?

I know there are scripts that automatically set the size of popups according to the size of an image that is displayed, but I don't need anything so fancy. I just want to have a little window appear on screen when someone clicks a link that is maybe 150 pixels wide and 300 pixels wide, or whatever, without the user having to manually shrink the window.

Thank you.

-- NewtownGuy
 
If I understand correctly, you want to open a new browser window that has specific dimensions. You will need to resort to Javascript for that. For example:
Code:
<a href="newwindow.html" onclick="window.open(this.href,'new','width=300,height=150')">Open new window</a>
Check here for more options:

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Hi,

I'm trying to control a device from another (not HTML-based) piece of software. That other software simply loads the following string into a browser:

Code:
[URL unfurl="true"]http://IP-address:8000[/URL]

What I really want to do is open the resulting index.html page with a specific (small, such as 200h x 100w) dimension, and without any browser baggage with it.

It's important to open this window in index.html so there are no intermediate steps between the software entering the IP address in the URL line, launching the browser, and the user getting the little, stripped down window.

I don't speak java or javascript, so if someone could give me the complete outline for the page, that would be great.

-- NewtownGuy
 
Probably best to contact the manufacturer of the device you are attempting to access.

This is not something we can really help with (with your level of Java/Javascript and our level of understanding of the device and your requirements).

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Hi Jeff,

We're the manufacturer. We're just trying to get a browser window to display the way we want it to. I've long set image dimensions in HTML, but I don't how how to set the browser's footprint for the entire page, or to control how much of the browser is on screen outside of the footprint of the page.

-- NewtownGuy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top