This content has been marked as final.
Show 1 reply
-
1. Re: Inserting a button to zoom out a page.
Gaurav.S Nov 29, 2013 6:44 AM (in response to timpennells)Hi,
The code that you have mentioned looks like for Mozila Firefox only. Try the Code below, this will add the Zoom Text effect
This goes in Page Head section
<script type=text/javascript>
var fontSize = 1;
function zoomIn() {
fontSize += 0.1;
document.body.style.fontSize = fontSize + "em";
}
function zoomOut() {
fontSize -= 0.1;
document.body.style.fontSize = fontSize + "em";
}
</script>
Now on your Page, add this using insert html
<input type="button" value="+" onClick="zoomIn()"/>
<input type="button" value="-" onClick="zoomOut()"/>
Hope this helps


