F
foldface
Hi
Completely ignore the non-standard nature of the noddy example
below.
I want to capture a mouse click in a frame from outside that frame.
Everything
I read online seems to indicate its something like the below but I
just can't get it to work. any ideas?
Ta
F
<script>
function Temp()
{
alert('hi')
}
function SetUp()
{
var myIFrame2 = document.getElementById("frame2");
myIFrame2.attachEvent('onclick', Temp);
}
</script>
<body onload=SetUp()>
<form>
<IFRAME id=frame2 src="http://www.google.co.uk" width=100%
height="700" scrolling="auto">
[Your user agent does not support frames or is
currently configured
not to display frames. However, you may visit
<A href="temp2.html">the related document.</A>]
</IFRAME>
</form>
</body>
Completely ignore the non-standard nature of the noddy example
below.
I want to capture a mouse click in a frame from outside that frame.
Everything
I read online seems to indicate its something like the below but I
just can't get it to work. any ideas?
Ta
F
<script>
function Temp()
{
alert('hi')
}
function SetUp()
{
var myIFrame2 = document.getElementById("frame2");
myIFrame2.attachEvent('onclick', Temp);
}
</script>
<body onload=SetUp()>
<form>
<IFRAME id=frame2 src="http://www.google.co.uk" width=100%
height="700" scrolling="auto">
[Your user agent does not support frames or is
currently configured
not to display frames. However, you may visit
<A href="temp2.html">the related document.</A>]
</IFRAME>
</form>
</body>