jquery get height of iframe content when loaded

ok I finally found a good solution: $(‘iframe’).load(function() { this.style.height = this.contentWindow.document.body.offsetHeight + ‘px’; }); Because some browsers (older Safari and Opera) report onload completed before CSS renders you need to set a micro Timeout and blank out and reassign the iframe’s src. $(‘iframe’).load(function() { setTimeout(iResize, 50); // Safari and Opera need a kick-start. var … Read more

Changing the page title with Jquery

$(document).prop(‘title’, ‘test’); This is simply a JQuery wrapper for: document.title=”test”; To add a > periodically you can do: function changeTitle() { var title = $(document).prop(‘title’); if (title.indexOf(‘>>>’) == -1) { setTimeout(changeTitle, 3000); $(document).prop(‘title’, ‘>’+title); } } changeTitle();