• Does this browser accept Cookies?
• Does this browser accept Flash?
• What processor chip type is in the computer hosting this browser?
• Will this browser run Java Applets?
• How wide is my window?
object contains the answers to four out of the five questions above - there's a source code example [here]
and you can run that example [here]
The Window width (and other things about the document that's displayed within the browser) are in the document
object; see [here]
for the source of an example, and run it [here]
The questions I started with is "What is my IP address", and I've yet to find a full and proper answer to that one.
I can actually find out the IP address that the server sees me arriving from via PHP, looking at the $_SERVER["REMOTE_ADDR"]
variable, and writing an AJAX query. But that reports the IP address from the server's perspective, and not the IP address that's being used on our internal network behind our router. In other words, I'm connected to my local network at the moment as "192.168.200.199", but that's rewritten to "220.127.116.11" when I connect out to the Internet. My server reports back 18.104.22.168, but I really want to know in my browser that I'm at 192.168.200.199.
- which would let my page call up a local server as well as the remote one, but that's a fudge which relies on me someone opening a security hole (see Cross site Scripting
, and I think the wise decision would be for me to look for a cleaner work around to meet my original requirement. (written 2011-01-11, updated 2011-01-12)
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articlesW508 - Web and Intranet - Which Browser? 
What features does this visitors browser support? (PHP) - (2009-04-22) 
Flipping images on your web page - (2008-01-26)W602 - Web and Intranet - Client Side Technologies 
Problem ... I want to print a series of numbered forms - (2014-10-05) 
Sending a message to the server and changing text on a page when a button is pressed - (2014-05-23) 
Dynamic / changing images on your web page - (2009-09-01) 
Ajax - going Asyncronous and what it means - (2008-09-28) 
Starting Ajax - easy example of browser calling up server data - (2008-09-27) 
Using server side and client side programming together - (2008-08-11) 
Adding a button to a web page to print the page - (2008-06-18) 
Flash - is it available to your web page? - (2007-08-26) 
Some other Articles
Virtual Hosting with Apache http server - an overall scheme, and avoiding common pitfallsLua, Tcl, Python; Worldwide training classesNew Computers for delegates to useExtra courses - C and C++ How does your browser find out about itself?Burger me!Car Parking in Melksham - thoughts on the proposed scheme, and wider thoughts tooThe family is defunct. Long live the family.C++ - putting the language elements together into a programC++ objects - some short, single file demonstrations