All pastes #468714 Raw Edit

Something

public text v1 · immutable
·published 2007-05-03 09:30 UTC
rendered paste body
function iFrameHeight() {
	var h = 0;
	if ( !document.all ) {
		h = document.getElementById('blockrandom').contentDocument.height;
		document.getElementById('blockrandom').style.height = h + 60 + 'px';
		document.getElementById('blockrandom').contentDocument.location.hash = document.getElementById('blockrandom').contentDocument.location.hash;
	} else if( document.all ) {
		h = document.frames('blockrandom').document.body.scrollHeight;
		document.all.blockrandom.style.height = h + 20 + 'px';
		document.frames('blockrandom').window.location.hash = document.frames('blockrandom').window.location.hash;
	}
}