can someone please tell me y this simple script doesnt work:
js console error is;
Code: Select all
Error: window.opener.document.elem has no propertiesCode: Select all
function click(colour){
var loc = window.location;
var arr = new Array();
arr = loc.toString().split('?');
elem = arrї1];
window.opener.document.elem.value = colour;
window.close();
}Code: Select all
window.open('../settings/colour_picker.html?colours_form.error_back', 'colour_pop', 'width=300, height=215', '')it all works fine if i put this directly into code
also tried to eval the line: eval(window.opener.document.elem.value) = colour;
and still didnt work
many thanx
g00fy