hey, can someone help me? im trying to use javascript history to resize an iframe when a submit button is clicked inside the iframe, im a newbie to javascript and i would be you grateful forever if you could help me out!

this is what i found so far.

Code:
<script type='text/javascript'> 
function checkHistory() {
var hist=history.length;
if (hist>1)//just change value 1 to other if you need :)
	{
		//redirect or resize or whatever... :P
	}
}
</script>
3)Us this with iframe:
Code:
Code:
onload="checkHistory()"
but im not really sure on how to apply this to my iframe, and i know that the resize part also needs to be edited, but what is missing? can someone help me out?