About Me

I aim to promote the mobile web through promotion of innovation. The thoughts and discussions in this blog are entirely of my own opinion and do not represent my employer or clients.
I can provide marketing and product strategies for mobile applications, deployments and campaigns

Nokia OSS Browser - Get Screensize Method

Written by olafdunn on Jun 18th, 2007 | Filed under: Mobile Web, Developer, Wireless Devices

I have just read a newly released document by Nokia and found that their Opensource browser found on their Series 60 DP 3 range has an interesting Javascript call.

The function getScreenSize allows the developer to check the display size on the mobile device

Example:

if(getScreenSize(240,320)){

//do mobile rendering

}

Should provide an excellent way of determining the device features when a unique user-agent is not available in the header



Leave a Reply

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word