I've created two buttons in my html code
<a href="#" class="increase">+</a>
<a href="#" class="decrease">-</a>
what i want to do is to click in the buttons and scale the page
i developed a jquery script, but it only works on chrome
$(".decrease").click(function () {
$("body").css('zoom',function (index,value) {
if(value < 0.8){
return value;
} else {
return parseFloat(value) - 0.1;
}
});
});
$(".increase").click(function () {
$("body").css('zoom',function (index,value) {
if(value > 1.2){
return value;
} else {
return parseFloat(value) - 0.1;
}
});
});
can anyone help me?
thanks