Hey guys,
Here's a more complete example:
Code:
<html>
<body>
<script language="JavaScript">
function myLocation() {
alert(document.all.myFrame.contentWindow.location);
}
function changeURL(url) {
document.getElementById("urlAddress1").value=url;
document.frames['myFrame'].location.href = url;
}
</script>
<iframe id="myFrame" src="http://www.google.com" style="width:200;">
</iframe>
<br>
<button onclick="changeURL('http://www.yahoo.com');">Yahoo</button><P>
1. <input type="button" name="clickMe2" id="urlAddress1" value="CurrentURL"/><P>
</body>
</html>
It works fine in IE when I click "Yahoo", the frame changes. When I click "Yahoo" in FF, nothing happens.
Any clue?
Thanks much.
Regards,
Pembar
Bookmarks