View Full Version : mouseover change different page ?????
lost2
07-02-2003, 06:37 AM
howdy :-D
ok.. here's what i want to know...
i have an HTML page with and IFRAME
could i have an image map on the page thats located in the IFrame and when the mouseover is activated could it change something in the parent html page ?
someone please let me know what you think of this
tanx for your time
:thumbsup:
Yes, you can
Generally speaking, if I am not wrong, I remember that you can call any function (say, function_name() ) written in parent simply using onevent="parent.function_name()"
Look, here a simple parent page:
<html>
<head>
<script language="JavaScript">
function function_name(){
alert('message from parent');
}
</script>
</head>
<body>
<iframe src="iframe.html"></iframe>
</body>
</html>
...and here's the content of the page "iframe.html"
<html>
<head>
</head>
<body>
<input type="button" name="Button" value="Button" onclick="parent.function_name()">
</body>
</html>
Now when click on the button from iframe you call the alert() written in the parent page
lost2, please read our rules before posting in the future. You cross posted the same question in multiple forums.
See here:
http://www.codingforums.com/rules.htm
http://www.codingforums.com/postguide.htm
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.