title edited to better explain my question.
This is a question on js. I want to change the url of a inframe by clicking a link. codes below:
<html>
<head>
</head>
<body>
<script>
function change()
{
if(document.getElementById)
{
document.BF.document.location=("test5.html");
}
}
</script>
<a href="javascript:change()">Change</a>
<iframe width=100 height=100 FRAMEBORDER=1 src="test4.html" id="BF" name="BF"></iframe>
</body>
</html>
However, such codes don't work in NN, also, in Opera it will load the new link in the top window instead of in the frame.
How to code it for compatibility of NN6+/Mozilla and Opera?
Thanks in advance.