Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Maybe try to use DOM functions to update it.
And an iframe is not like a browser windows.
You don't use location.src, but you must alter the src property of the iframe tag.
And on a side not, if I remember right, location.src is deprecated.
You should use window.location=url now.
look there: http://developer.mozilla.org/en/docs...indow.location
There is no more src property nor method. the location.src method yould stop working on a future update of the navigators.
But to our concern now, I just tried this on my comp, and it's working ok.
I've got ie7, but this should work no different in ie6.
Code:
<body>
beginning<hr>
<iframe src="blank.html" width=100 height=100 id="myIframe"></iframe>
<hr>
end<br>
<a href="javascript:changeIframe();" >test</a>
<script type="text/javascript">
function changeIframe(){
document.getElementById('myIframe').src="success.html";
}
</script>
</body>
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 03-08-2007 at 04:11 AM..
|