Buenas, es algo extraño, tengo un codigo que funciona correctamente bajo Mozilla pero no funciona sobre Internet Explorer, el codigo es el siguiente:
Código:
win.document.write("<scr"+"ipt>");
win.document.write("function show() {");
win.document.write(" string = document.getElementById('p').contentWindow.document.body.innerHTML;");
win.document.write(" var elements = string.split('\\n');");
win.document.write(" for(var i = 0; i < elements.length - 1; i++) {");
win.document.write(" var info = elements[i].split('|');");
win.document.write(" var opt = new Option(info[1], info[0]);");
win.document.write(" eval(document.admin.pictures.options[i] = opt);");
win.document.write(" }");
win.document.write(" return false;");
win.document.write("}");
win.document.write("</scr"+"ipt>");
Lo que deberia de hacer es rellenar un select con las opciones que se le pasan por el bucle, peor no lo hace, que puede haber mal?
gracisa