All pastes #468735 Raw Edit

Miscellany

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