<!doctype html>
<html>
<head>
<title>ComboBox Table</title>
<script type='text/javascript'>
var selc=" ", seli=0, selcombov=[], retrep='';
while (selc != '') {
selc = location.search.split('selcombo' + seli + '=')[1] ? decodeURIComponent(location.search.split('selcombo' + seli + '=')[1].split('&')[0]) : '';
if (selc != '') { selcombov.push('' + selc); retrep+='Value' + eval(1 + seli) + ' (set by user)=' + selc + String.fromCharCode(10); }
seli++;
}
if (retrep != '') {
if (('' + document.referrer).indexOf('?topics=') != -1) {
var cols=decodeURIComponent(('' + document.referrer).split('?topics=')[1]).split(',');
for (var iiu=1; iiu<=cols.length; iiu++) {
retrep=retrep.replace('Value' + iiu + ' ', cols[eval(-1 + iiu)] + ' ');
}
}
alert(retrep);
}
</script>
<style>
div.combobox { background-color:yellow; }
select.combobox { background-color:pink; width:95%; }
td { vertical-align:top; }
</style>
<script type='text/javascript' src='combobox.js?ddlist=1,2,3,4' defer></script>
<script type='text/javascript' src='combobox.js?ddlist=a,b,c,d' defer></script>
<script type='text/javascript' src='combobox.js?ddlist=A,B,C,D' defer></script>
</head>
<body>
<!--div style=inline-block; id='demo'></div-->
<h1>ComboBox Table<a onclick="var alist=prompt('Enter a comma separated list of Topics to tabulate links in dropdown elements for',''); if (alist == null) { alist=''; } if (alist != '') { location.href='./combobox.php?topics=' + encodeURIComponent(alist); } " style="text-decoration:none;cursor:pointer;" title="Your own list">.</a></h1>
<h3>RJM Programming - November, 2020</h3>
<form onsubmit="return true;" method=GET action=combobox.htm>
<table border=20>
<tr><th>Integer</th><th>Lowercase</th><th>Uppercase</th></tr>
<tr><td></td><td></td><td></td></tr>
</table><br>
<input type=submit value=Test></input>
</form>
</body>
</html>