the IF statement is not the problem. I actually added that later but it still works for Safari anyway. The problem is the method that I am using for changing the frame name and location. It seems as if Safari doesn't like using
window.parent.frames['framename']
both .name and .window.location...
I have this code that dynamically changes a frame name and address and reloads it in the page. this code works for both firefox and IE but it doesn't for Safari and Opera. Is there a way I can make this code work with all browsers?
function changeName()
{
var idPassed = this.id;
var...
Thanks for the response. I tried both methods and for some reason i am still getting the last div's id. i tried classic dom for IE and wrote.
titleDiv.onclick = test;
that worked but is there any draw back for using an older format code?
I am running a function that dynamically creating divs and populates them from an xml file. what i have been trying to do is to add an onclick event to the divs so when one is clicked it would run a function. here is my code.
function loadlist()
{
var xmlDoc=null;
if (window.ActiveXObject)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.