I manage to incorporate an iframe resizing script by DynamicDrive and it works nicely.
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
I set it up to load only on mouseover..
onmouseover="javascript:loadintoIframe('myframe', 'http://mysite.com/page.php)"
However, I need it to only load once instead of reloading on every hover.
I’ve tried this but I think I have to add something to javascript but not sure.
onclick="this.value = '';this.onclick=null;"
I guess if you want to keep the onmouseover handler delcared as an attribute, you could try:
The second time it gets called, it doesn’t do anything
Personally, I prefer using Unobtrusive JavaScript