I have this simple line
alert(window.parent.frames[0].document.getElementById('textToSearch').value);
I have 2 frames, first with a text field with id 'textToSearch' I want to get the value of the text field in the second frame The line above is on the html file from second frame I get this error only in Google Chrome, in IE or FF works fine.
Uncaught TypeError: Cannot call method 'getElementById' of undefined
Any ideas?
Thanks in advance