This is a slight modification such that all the elements show up in current browser window (copy-paste friendly):
javascript:function ROIoiW(){var i=0,j,D,E,F=document.forms,DD="",m,M;while(i<F.length){E=F[i].elements;for(j=0;j<E.length;j++) {D=E[j];m=i+'/'+j+'/'+D.type+'-'+E.name+'-'+D.name+'-'+D.value+'\n';M=M+m;DD=DD+m+''} i++}document.write(DD);}ROIoiW();void(null)