I expect when that's clicked for the src of the lower iframe to be changed to yahoo.com (like the function states), but it's not happening.
What am I doing wrong :-S
Last edited by s.dot on Tue Mar 21, 2006 12:13 am, edited 2 times in total.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
I really suck at javascript. Should it be window.document.showInfo()?
Or in my function should it be something like, document.frames[1].location.href=''; =/
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
k, document.frames[] in the function seemed to work good.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
From what I've read, accessing things directly like that is a slight no no and your original code was more along the lines of what you should be doing.
Thing is, with getElementById, I don't believe you need the location part, since you're accessing it's properties directly.
Neither one of those work, but they both do in IE.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
function showInfo(who){
var uFrame = document.getElementById("infoBox");
uFrame.src = 'whatever';
}
And that worked in both browsers.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.