|
Answer» The text box does not update with the new website and it does not GO to the site you enter in the text box. What did you exactly ADD or change? So i know what i am testing?I added the JavaScript in the ....
Code: [Select]function changeURL() { var url = document.getElementById('link').value; document.getElementById('linkframe').SRC = url; }
The clickable image that changes the location:
Code: [Select]<img border="0" src="files/images/refresh.bmp" width="11" height="11" onClick="changeURL()">
And the ID to register witht the "getElementById" command:
Code: [Select]<iframe id="linkframe" name="I1" width="100%" height="91%" src="http://www.google.com/" border="0" frameborder="0" align="left"> Your browser does not support inline FRAMES or is currently configured not to display inline frames.</iframe> That images was used refresh the page, but fair enough. This works great, apart from say in the iframe i clicked to go to yahoo.com how would i get the text box to auto update with http://www.yahoo.com.I'm not sure about that one, sorry. No worries, thanks for your great help ANYWAY.
|