Click to See Complete Forum and Search --> : Is this possible?


fredd
01-16-2003, 09:13 PM
Can you please tell me if this is possible to do?

Here's the scenario. I have a web page made up of a frameset with two frames. Loaded in the bottom frame is another site over which I have no control. Is it possible to take action (for example load an invisible gif in the top frame) when a user hits a submit button in the bottom frame? Thanks in advance for your help.

Zach Elfers
01-16-2003, 09:38 PM
I am not sure. You might be able to do it this way:

<script type="text/JavaScript">

if (parent.frameName.formName.onSubmit == true) {
document.write("<img src=\"img.ext\">");
}

</script>

gil davis
01-17-2003, 05:40 AM
No. Once you load a page from a foreign domain into your frameset, you are restricted by browser security features from accessing that window using JavaScript.