Hi all,
I am executing a code here is the description of that........
[CODE=javascript]function abc(){
window.open(som e file name with parameter and in different frame)//Line 1
alert('anything ');
.............
.............//then acessing dom of that opened frame and doing operation
}[/CODE]
The problem is it gives alert first and then it loads the page in the frame.
But even then it is not doing operation on the DOM.
But I had checked if i am commenting the Line 1 then the code is operating
on the already loaded page in the target frame.
So I want to know that is there any sequence of executing the Javascript
or In this language there is preference to some special API.
}
I am executing a code here is the description of that........
[CODE=javascript]function abc(){
window.open(som e file name with parameter and in different frame)//Line 1
alert('anything ');
.............
.............//then acessing dom of that opened frame and doing operation
}[/CODE]
The problem is it gives alert first and then it loads the page in the frame.
But even then it is not doing operation on the DOM.
But I had checked if i am commenting the Line 1 then the code is operating
on the already loaded page in the target frame.
So I want to know that is there any sequence of executing the Javascript
or In this language there is preference to some special API.
}
Comment