dom - imacros javascript window.onload not working -
ive ran script couple of times , cant figure out why window.onload isnt working. not doing right ?
var macro = "code:"; macro += "version build=9002379" + "\n"; macro += "tab t=1" + "\n"; macro += "tab closeallothers" + "\n"; macro += "set !extract_test_popup yes" + "\n"; macro += "set !timeout_step 60" + "\n"; macro += "set !timeout_page 60" + "\n"; macro += "set !errorignore yes" + "\n"; macro += "set !datasource c:\\imacros\\test.csv" + "\n"; macro += "set !datasource_columns 1" + "\n" macro += "set !datasource_line 1" + "\n"; macro += "url goto={{!col1}}" + "\n"; function addlisteners(){ window.alert("boo !"); } window.onload = addlisteners; iimplay(macro);
i not sure tried script above code works fine. var macro = "code:"; macro += "version build=9002379" + "\n"; macro += "tab t=1" + "\n"; macro += "tab closeallothers" + "\n"; macro += "set !extract_test_popup yes" + "\n"; macro += "set !timeout_step 60" + "\n"; macro += "set !timeout_page 60" + "\n"; macro += "set !errorignore yes" + "\n"; macro += "set !datasource c:\\imacros\\test.csv" + "\n"; macro += "set !datasource_columns 1" + "\n" macro += "set !datasource_line 1" + "\n"; macro += "url goto={{!col1}}" + "\n"; iimplay(macro); addlisteners(); function addlisteners() { alert("boo !"); }
how now?
Comments
Post a Comment