Code: Select all
function resizeplus(id,w,h){
var e=document.getElementById(id);
var cw=e.style.width.split('px');
var ch=e.style.height.split('px');
e.style.width=cw[0]+w+'px';
e.style.height=ch[0]+h+'px';}Code: Select all
<a href="#" onclick="resizeplus('o','5','5')">Extend o +5px</a>
<iframe id="o" src="http://google.com" style="width:950px;height:500px;"></iframe>