6c6 < var template="const prompt = (one,two) => { lasto=window.prompt(one,two); };"; --- > var template="const prompt = (one,two) => { window.prompt(one,two); };"; 9,10d8 < var lasto=null; < var myh4ih=''; 15d12 < var nts=[]; 17,21d13 < var curobj=lasto; < var repone='youwillneverfindthiswindow.'; < var reptwo='lasto.' < var repthree='youwillneverfindthiswindow.'; < var repfour='lasto.' 27d18 < document.getElementById('optionfunction').innerHTML='function(){ console.log( (new Date() ) ); }'; 29d19 < tv=tv.replace(/\)\)/g,')').replace('Eval(','').replace('eval(','').replace('EVal(','').replace('one),','one,'); 31,32d20 < // newt=const close = ( ) => { lasto=window.close( ); }; and tv=close( ) < // alert('newt=' + newt + ' and tv=' + tv + ' and vars.length=' + tv.split('(')[1].split(')')[0].split(',').length); 39,83d26 < if (ivars == 0 && document.getElementById('myselect').value.indexOf('al(one)') != -1) { < var optsare=document.getElementsByTagName('option'), iopts=0; < document.getElementById('optionlasto').style.display='block'; < document.getElementById('optionfunction').style.display='block'; < document.getElementById('optionwindow').style.display='block'; < for (iopts=0; iopts thisih+=' ' + newt.split('{')[1].split('window.')[0] + ' ' + tv.split('(')[0] + '(' + tv.split('(')[1].split(')')[0].trim() + ')' + suff + ' '; 108,120c43 < if (document.getElementById('myselect').value.indexOf('al(one)') != -1 && 1 == 3) { < newt=newt.replace('(one,' + nts[eval(-1 + nts.length)], '(eval(' + document.getElementById('selectone').value + '),' + nts[eval(-1 + nts.length)]); < } < newt=newt.replace(repone,reptwo).replace(repthree,repfour).replace(/\(\ \)/g,'()'); < if (newt.indexOf(' lasto.') != -1) { < if (thisih.indexOf(' ' + tv.split('(')[0] + '(') != -1) { < thisih=thisih.replace(' ' + tv.split('(')[0] + '(', ' lasto.' + tv.split('(')[0] + '('); < } < } < document.getElementById('myh4').innerHTML="" + newt + ""; < if (newnewt == '') { < myh4ih=document.getElementById('myh4').innerHTML; < } --- > document.getElementById('myh4').innerHTML="" + newt + ""; 125,128d47 < function aftdbl() { < document.getElementById('myh4').style.backgroundColor='lightgray'; < } < 132,137d50 < if (tih.indexOf('(function') != -1 && document.getElementById('selectone').value.indexOf('function') == 0) { < eval('one=function' + tih.split('(function')[1].split('}')[0] + '}'); < document.getElementById('optionfunction').innerHTML='function' + tih.split('(function')[1].split('}')[0] + '}'; < divo.innerHTML=myh4ih; < tih=(divo.innerText || divo.contentWindow || divo.contentDocument); < } 142,143c55,56 < //alert('Arg 1=' + document.getElementById('myselect').value); < setitup(document.getElementById('myselect').value, tih); --- > //alert('Arg 1=' + document.getElementById('mysel').value); > setitup(document.getElementById('mysel').value, tih); 148d60 < document.getElementById('selectone').style.display='none'; 156,177d67 < var idsare=document.body.outerHTML.split(' id="'); < for (var jids=1; jids" + idsare[jids].split('"')[0] + ""; < } else { < document.getElementById('selectone').innerHTML+=""; < } < } < document.getElementById('selectone').innerHTML+=""; < document.getElementById('selectone').innerHTML+=""; < } < < function seloc(selo) { < if (('' + selo.options[selo.selectedIndex].title).replace('null','').replace('undefined','') != '') { < selo.title='one ... ' + selo.options[selo.selectedIndex].title; < eval("one=" + selo.options[selo.selectedIndex].innerHTML); //outerHTML.split('>')[1].split('<')[0]); < } else if (('' + selo.options[selo.selectedIndex].id).replace('null','').replace('undefined','').indexOf('firstopt') == 0 || 1 == 1) { < selo.title="one = " + document.getElementById('selectone').value + ";"; < } else { < selo.title='one'; < } < return selo; 181,188c71,78 < <

Window Object Methods

<

RJM Programming - June, 2022

<

Thanks to https://www.w3schools.com/jsref/obj_window.asp

< < < < --- > >

Window Object Methods

>

RJM Programming - June, 2022

>

Thanks to https://www.w3schools.com/jsref/obj_window.asp

> > > > 191c81 < 196,197c86,87 < < --- > > 201c91 < --- > 209c99 < --- > 215,216c105,106 < < --- > >