register events in iframe

Im building a little application that includes an Iframe and a "redirect if no activity" script.

The redirect works at planned.
The timer starts counting on load, and keeps counting until any mouseevent occures.
If the mouse moves, the timer resets to zero.

I now have an Iframe that shows an external website.
My problem is, that when the mouse moves within the iframe, the counter does not register any events

How can I make my script monitor the Iframe?
I cannot edit the iframe content, as the emebbed site is not mine.

<script language="javascript">
                  var timer=null;
                  var sessTimeOut=10;
                        if (document.addEventListener){
                              document.addEventListener("mouseover", clickHandler, true);
                              document.addEventListener("keypress", clickHandler, true);
                              document.addEventListener("click", clickHandler, true);
                        }else if(document.attachEvent){
                              document.attachEvent("onmouseover", clickHandler);
                              document.attachEvent("onclick", clickHandler);
                              document.attachEvent("onkeypress", clickHandler);

                  function generateTimer(){
                        var o=document.getElementById('sessTimer');
                             var link = "forside.asp";
window.location.href= link;

                  function clickHandler(e){
                        var o=document.getElementById('sessTimer');

<input type="text" value="0" id="sessTimer">
<table width="1360" border="0" align="center" cellpadding="0" cellspacing="0">
    <td bgcolor="#FFCCFF">&nbsp;&nbsp;<a href="forside.asp">Hjem</a></td>
    <td background="images/layout/loading.png" style="background-repeat:no-repeat;background-position:center">
<iframe border="0" height="748" width="1360" align="left" allowtransparency="yes" designmode="on" frameborder="0" name="IFRAME"  src="">
  <p>Your browser does not support iframes.</p>

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ted BouskillSenior Software DeveloperCommented:
It can't be done.  The IFRAME is a Window into another web site and the web site in the IFRAME is receiving the events.
bsitAuthor Commented:
Thats what I have read as well.
But is there really no way I can workaround this issue?

It doesn't have to be with event registering. It could be something with "if any useractivity is registered on the computer, my page will react.
Ted BouskillSenior Software DeveloperCommented:
No sorry.  You can't track any activity outside the client area for your web page.  That is to protect the client.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

bsitAuthor Commented:
ok :-(
bsitAuthor Commented:
How do I close this question?
Ted BouskillSenior Software DeveloperCommented:
Sometimes the correct answer is 'You can't do that' so select comment http:#30681086 as the answer.
bsitAuthor Commented:
Unfortunally no solution for this question.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.