If you are looking to implement zoom in CSS, there is a property available. You can check out some examples here on Stack Overflow.
To determine the scale of the zoom, you can compare the new window size to the predetermined design size and scale accordingly. Using jQuery, you can detect changes in the resize event of the iFrame window.
// Assuming your page is designed for a width of 1024px
var designWidth = 1024;
$(window).resize(function () {
var w = $(window).width();
/* calculate new zoom */
var zoom = parseInt(w / designWidth * 100).toString() + "%";
// Assuming all content to resize is within an element with id "content"
$("#content").css("zoom", zoom);
});
Here's a simple example:
page1.html
<!DOCTYPE html>
<html>
<body>
<iframe width="50%" src="page2.html"></iframe>
</body>
</html>
page2.html
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript>
$(window).resize(function () {
resize();
});
$(document).ready(function(){
resize();
});
var designWidth = 300;
function resize() {
var w = $(window).width();
var zoom = parseInt(w / designWidth * 100).toString() + "%";
$("#content").css("zoom", zoom);
}
</script>
<div id="content">I get bigger and smaller!</div>
</body>
</html>
This method has been tested and confirmed to work in the latest version of Chrome.