Jump to content

FULL PAGE ZOOM (unsure of what coding)


nade93

Recommended Posts

JavaScript:

 

function changeFontSize(size) {
  document.body.style.fontSize = size + 'px';
}

 

Something like this should do the trick:

 

<a href="#" onClick="changeFontSize(16);">Normal</a>
<a href="#" onClick="changeFontSize(20);">Medium</a><!-- 125% -->
<a href="#" onClick="changeFontSize(24);">Large</a><!-- 150% -->

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.