Hey guys + girls, O.K. I have to iframe something. I don't like to iframe in general, but in this case i have no choice. So I have a page iframed. What i want to know is there a way to detect when anything within the iframe is hit then refresh the whole page (not just the iframed area). I am pretty sure this is possible via Action Script, and i know javaScript is very similar. I am handy with Action Script, but never wrote java. Possible? Suggestions? Snippets? Edit/Delete Message
Put the fallowing code in the iframe source: <script type='text/javascript'> document.onclick = function() { parent.location.reload(); } </script> Code (markup): This will reload the whole page (not just the iframe) when you click anywhere on the iframe. If you need to reload the page only when a specific object inside the iframe has been clicked, then use the same function, but put the onclick event on the element that you want to be used, not on the 'document' element.