This one is a little bit tricky. I have a DIV which appears on top of my main page. That DIV contains a list with a navigation toolbar. On either of those options, this call javascript:parent.frames['IFrameSelection'].Skip(), assuming a skip page next in this case. This works. Everytime a click is done on that option, this sends a command toa hidden IFrame to send a URL to the server to refresh the DIV. So, once the IFrame finishes loading, the DIV is being refreshed with a page next. If I click in repetition on that option, this will redo the same thing. However, if I click too fast, such as I click on the option, the script starts to be executed, but I click immediately while the DIV is being reloaded, I get:
"Object doesn't support property or method 'Skip'"
This is because a click on that option executes a javascript Skip() function on the IFrame. Thus, that IFrame is being refreshed everytime a click is done on the DIV skip option. So, if I click too fast, it will end up in a situation that the IFrame is being reloaded, thus not completed, resulting in a javascript function Skip() not found.
Remember, the DIV only contains HTML and cannot interpret javascript. It can only sends a javascript command to be executed in its parent or in another container, for example, which is the case here. So, it is kind of difficult to trap that and simply ignore the click in this case.
Any idea on how to react to such an issue when it happens and simply avoid any operation?