M
Mikhail Kovalev
opens a new window window_1 which contains a form, uses window
reference to change values there and submits, anyone can have a quick
glimse over this
windows opens ok, nothing happens afterwards : (
var window_1; // global value
function function_1() {
window_1 = window.open('http//...');
setTimeout(function_2, 10000); // 10 secs to load
}
function function_2()
{
window_1.forms['postform'].elements['commenttext'].value = 'test';
window_1.forms['postform'].submit();
}
function_1 is called in body onload in the opened window
reference to change values there and submits, anyone can have a quick
glimse over this
windows opens ok, nothing happens afterwards : (
var window_1; // global value
function function_1() {
window_1 = window.open('http//...');
setTimeout(function_2, 10000); // 10 secs to load
}
function function_2()
{
window_1.forms['postform'].elements['commenttext'].value = 'test';
window_1.forms['postform'].submit();
}
function_1 is called in body onload in the opened window