nil111

msg:3816049 | 5:14 am on Dec 30, 2008 (gmt 0) |
btw document.getElementById('btn').click(); also gives the same error. :(
|
eelixduppy

msg:3816050 | 5:18 am on Dec 30, 2008 (gmt 0) |
Are you using separate windows or dealing with all the same window?
|
nil111

msg:3816052 | 5:26 am on Dec 30, 2008 (gmt 0) |
this is a pop up window. in this pop up window there is a button. i want that to get clicked wen the window is loadin. I put it inside the body onload function and it works(but that way I dnt get sm other functionality workin). so I was wonderin whether any other way was possible. thanks 4 the reply
|
nil111

msg:3816103 | 7:46 am on Dec 30, 2008 (gmt 0) |
solved it! thanks eelixduppy for tryin to help. wel the problem was with the javascript. the error is generated coz onFocus of the window the javascript was still not loaded. thats why it worked with onLoad. I solved this by using onMouseOver. since the javascript is loaded at that time it works perfectly. :)
|
|