Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Developer
Posts: 60
Registered: ‎01-16-2009
My Device: Not Specified

Blackberry browser: Zoom out automatically happens

[ Edited ]

When a web page is displayed in the browser, when we click on the any buttons, the web page automatically zooms out.


Is there a way we can control the automatic zoom in/zoom out in the browser?Can we avoid this?


Message Edited by navan1983 on 05-21-2009 05:41 AM
New Developer
Posts: 13
Registered: ‎01-03-2009
My Device: Not Specified

Re: Blackberry browser: Zoom out automatically happens

I haven't had any luck with the HandeldFriendly tag or specifiying the device width.  The only thing that seems to work is making the button a link and including href="#".


I don't yet know how robust this is.  Using href="#" stopped the zooming in my test, but had the side effect of jumping to the top of the page when the button was clicked. Adding return false to the onclick stopped the jumping.


Here's an example of the link attributes.


<a onclick="function($parameter); return false;" href="#">