tags:

views:

330

answers:

0

Hi, I have developed web application using using asp.net2008. Application has to work in any screen resolutions. we can do this by using different css as per screen resolution . But I want to change IE7 zoom level using Java Script. If we find out this way will be very usful for our appliclation work in different screen resolution instead of using different css.

I tried followwing way

Example 1

If screen.width=1280
{
var wdth = 1024; //Change this variable to match your configuration
document.body.style.zoom = screen.width/1024;
}


Example 2

If screen.width=1280
{
var wdth = 1024; //Change this variable to match your configuration
document.body.style.zoom = screen.width/1024;
}

Browser zoom level will be changed while using given above Java script coding. But I did not have exact result what I get while manually change the browser zoom level. I need to change the browser zoom level through Java Script coding like what we get while manually change the zoom level in IE7.

Regards

Ramadurai Jayaraman