{"id":58783,"date":"2023-03-28T03:01:07","date_gmt":"2023-03-27T17:01:07","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=58783"},"modified":"2023-03-27T17:07:43","modified_gmt":"2023-03-27T07:07:43","slug":"onclick-event-propagation-event-type-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/onclick-event-propagation-event-type-tutorial\/","title":{"rendered":"Onclick Event Propagation Event Type Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Onclick Event Propagation Event Type Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation_type.jpg\" title=\"Onclick Event Propagation Event Type Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Onclick Event Propagation Event Type Tutorial<\/p><\/div>\n<p>On top of yesterday&#8217;s <a title='Onclick Event Propagation Event Target Tutorial' href='#oepett'>Onclick Event Propagation Event Target Tutorial<\/a> &#8230;<\/p>\n<ul>\n<li>event.target &#8230; theme, today we have a &#8230;<\/li>\n<li><a target=_blank title='Javascript event.type information' href='https:\/\/www.w3schools.com\/jsref\/event_type.asp'>event.type<\/a> &#8230;<\/li>\n<\/ul>\n<p> &#8230; theme<font size=1>, the added bonus being that we finally got to use the word &#8220;<font color=magenta><i>touchdown<\/i><\/font>&#8220;, in all seriousness, in a blog posting&#8217;s code logic &#8230; yay!!!<\/font>  Yes, as we hadn&#8217;t used before (in our memory) but available to use <font size=1>(and today we do)<\/font> is the idea of &#8230;<\/p>\n<ul>\n<li>a single event Javascript function &#8230; that can &#8220;multipurpose&#8221; itself, even further than the &#8220;event.target&#8221; helped with this, via &#8230;\n<li>event.type recognition of HTML <font color=blue>added to as per<\/font> &#8230;<br \/>\n<code><br \/>\n&lt;body onclick=\"moi(this);\"<font color=blue> onmouseover=\"moi(this);\" onmouseout=\"moi(this);\"  onmousedown=\"moi(this);\" ontouchdown=\"moi(this);\" ontouchstart=\"moi(this);\" ontouchend=\"moi(this);\"<\/font>&gt;<br \/>\n<\/code>\n<\/li>\n<\/ul>\n<p> &#8230; making itself useful adding optional window.open popup <a target=_blank title=Google href='http:\/\/www.google.com'>Google<\/a> search functionality <font color=blue>as per<\/font> &#8230;<\/p>\n<p><code><br \/>\n  <font color=blue>function commonev(othis) {<br \/>\n    if (eval('' + jdc) &gt;= eval('' + lotsofsix.length)) { jdc=0;  }<br \/>\n    jdc=Math.floor(Math.random() * lotsofsix.length);<br \/>\n    if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':') != -1) {<br \/>\n    if (lastajax != lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':')[1].split(',')[0])].replace(\/\\&lt;br\\&gt;\/g, String.fromCharCode(10))) {<br \/>\n    lastajax=lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':')[1].split(',')[0])].replace(\/\\&lt;br\\&gt;\/g, String.fromCharCode(10));<br \/>\n    ajaxit(lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':')[1].split(',')[0])].replace(\/\\&lt;br\\&gt;\/g, String.fromCharCode(10)));<br \/>\n    }<br \/>\n    }<br \/>\n  }<\/font><br \/>\n<br \/>\n  function moi(othis) {<br \/>\n    var extras='';<br \/>\n<br \/>\n    <font color=blue>switch ('' + event.type) {<br \/>\n    case 'mouseover':<br \/>\n    if (document.getElementById('mycbomo').checked && document.getElementById('eventtype').value == ('' + event.type)) {<br \/>\n     commonev(othis);<br \/>\n    }<br \/>\n    break;<br \/>\n<br \/>\n    case 'mousedown':<br \/>\n    if (document.getElementById('mycbomo').checked && document.getElementById('eventtype').value == ('' + event.type)) {<br \/>\n     commonev(othis);<br \/>\n    }<br \/>\n    break;<br \/>\n<br \/>\n    case 'mouseoout':<br \/>\n    if (document.getElementById('mycbomo').checked && document.getElementById('eventtype').value == ('' + event.type)) {<br \/>\n     commonev(othis);<br \/>\n    }<br \/>\n    break;<br \/>\n<br \/>\n    case 'touchstart':<br \/>\n    if (document.getElementById('mycbomo').checked && document.getElementById('eventtype').value == ('' + event.type)) {<br \/>\n     commonev(othis);<br \/>\n    }<br \/>\n    break;<br \/>\n<br \/>\n    case '<\/font><font color=magenta title='yay!!!'><i>touchdown<\/i><\/font><font color=blue>':<br \/>\n    if (document.getElementById('mycbomo').checked && document.getElementById('eventtype').value == ('' + event.type)) {<br \/>\n     commonev(othis);<br \/>\n    }<br \/>\n    break;<br \/>\n<br \/>\n    case 'touchend':<br \/>\n    if (document.getElementById('mycbomo').checked && document.getElementById('eventtype').value == ('' + event.type)) {<br \/>\n     commonev(othis);<br \/>\n    }<br \/>\n    break;<br \/>\n<br \/> <br \/>\n    case 'click':<\/font><br \/>\n    \/\/document.getElementById('myh1').innerHTML+=' ' + event.target.outerHTML.substring(1).split(' ')[0].split('&gt;')[0];<br \/>\n    if (('' + event.target.outerHTML).substring(1).split(' ')[0].split('&gt;')[0] != 'button') {<br \/>\n    if (eval('' + jdc) &gt;= eval('' + lotsofsix.length)) { jdc=0;  }<br \/>\n    \/\/alert('2967 ' +  othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0]);<br \/>\n    if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':') != -1) {<br \/>\n    \/\/alert((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':')[1].split(',')[0] + ' ' + jdc + ' ' + lotsofsix[jdc]);<br \/>\n    jdc=Math.floor(Math.random() * lotsofsix.length);<br \/>\n    thisalert('This ' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ' sestet snippet is  ... ' + lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':')[1].split(',')[0])].replace(\/\\&lt;br\\&gt;\/g, String.fromCharCode(10)));<br \/>\n    }<br \/>\n    } else if (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'details' || (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'body' && blurbsuffix == '') || noway) {<br \/>\n    \/\/alert(1967);<br \/>\n    noway=true;<br \/>\n    if (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'body') { noway=false; }<br \/>\n    } else {<br \/>\n    \/\/alert(blurbsuffix + ' ... ' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0]);<br \/>\n    if (('' + othis.id) != '') {  extras=' ID=' + othis.id; idfound=true; } else {<br \/>\n    if (eval('' + jdc) &gt;= eval('' + lotsofsix.length)) { jdc=0;  }<br \/>\n    if (eval('' + detnum) &gt; 0) {<br \/>\n    if (lotsofsix[jdc].split(';')[idc].indexOf('&lt;br&gt;') != -1) {<br \/>\n    if (document.getElementById('det' + eval(-1 + detnum))) {<br \/>\n    document.getElementById('det' + eval(-1 + detnum)).open=false;<br \/>\n    }<br \/>\n    }<br \/>\n    }<br \/>\n    blurb+='&lt;br&gt;' + lotsofsix[jdc].split(';')[idc].replace('&lt;br&gt;', '&lt;br&gt;&lt;details onclick=\"noway=false;\" id=det' + detnum + ' open&gt;&lt;summary&gt;') + detsuffix; detsuffix='';<br \/>\n    }<br \/>\n    detsuffix='';<br \/>\n    if (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'body' && !idfound) {<br \/>\n    var suf=tableize(blurb.replace('&lt;\/summary&gt;&lt;br&gt;', '&lt;\/summary&gt;') + blurbsuffix);<br \/>\n    if (suf != '') { document.getElementById('results').innerHTML+=suf; }<br \/>\n    \/\/alert(document.getElementById('results').innerHTML);<br \/>\n    detsuffix='';<br \/>\n    blurbsuffix='';<br \/>\n    detnum++;<br \/>\n    } else if (idfound) {<br \/>\n    detsuffix='';<br \/>\n    blurbsuffix='';<br \/>\n    document.getElementById('results').innerHTML+=othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + extras + ' clicked.&lt;br&gt;';<br \/>\n    } else if (('' + event.target.outerHTML).substring(1).split(' ')[0].split('&gt;')[0] != 'button') {<br \/>\n    \/\/alert(967);<br \/>\n    if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':') != -1) {<br \/>\n    jdc=Math.floor(Math.random() * lotsofsix.length);<br \/>\n    thisalert('This ' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ' sestet snippet is  ... ' + lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':')[1].split(',')[0])].replace(\/\\&lt;br\\&gt;\/g, String.fromCharCode(10)));<br \/>\n    }<br \/>\n    }<br \/>\n    jdc++;<br \/>\n    }<font color=blue><br \/>\n    break;<br \/>\n<br \/> <br \/>\n    default:<br \/>\n    break;<br \/>\n    }<\/font><br \/>\n  }<br \/>\n<\/code><\/p>\n<p> &#8230; in  <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html--GETME\">the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html--GETME\">&#8220;proof of concept&#8221; onclick_propagation.html<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html\" title=\"Click picture\">Sestet web application<\/a> you can also <a href='#myifop'>try below<\/a>.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/onclick-event-propagation-event-type-tutorial\/'>Onclick Event Propagation Event Type Tutorial<\/a>.<\/p-->\n<hr>\n<p id='oepett'>Previous relevant <a target=_blank title='Onclick Event Propagation Event Target Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/onclick-event-propagation-event-target-tutorial\/'>Onclick Event Propagation Event Target Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Onclick Event Propagation Event Target Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation_event_target.jpg\" title=\"Onclick Event Propagation Event Target Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Onclick Event Propagation Event Target Tutorial<\/p><\/div>\n<p>Yesterday&#8217;s <a title='Onclick Event Propagation Primer Tutorial' href='#oeppt'>Onclick Event Propagation Primer Tutorial<\/a> approach to harnessing the &#8220;powers of propagation&#8221; was a bit &#8220;scattergun&#8221;.  We never referenced the very useful &#8230;<\/p>\n<p><code><br \/>\n<a target=_blank title='event.target information from W3schools' href='https:\/\/www.w3schools.com\/jsref\/event_target.asp'>event.target<\/a><br \/>\n<\/code><\/p>\n<p> &#8230; global variable that can be used in Javascript event logic to get the element where the event originated, as distinct from <i>function moi<\/i>&#8216;s &#8220;othis&#8221; argument, which points at the HTML webpage element calling the &#8220;onclick&#8221; event logic.<\/p>\n<p>Its use can <font color=blue>add nuance<\/font> to the reworked &#8220;onclick&#8221; event sharing Javascript function &#8230;<\/p>\n<p><code><br \/>\n  function moi(othis) {<br \/>\n    var extras='';<br \/>\n    \/\/document.getElementById('myh1').innerHTML+=' ' + event.target.outerHTML.substring(1).split(' ')[0].split('&gt;')[0];<br \/>\n    <font color=blue>if (('' + event.target.outerHTML).substring(1).split(' ')[0].split('&gt;')[0] != 'button') {<br \/>\n    if (eval('' + jdc) &gt;= eval('' + lotsofsix.length)) { jdc=0;  }<br \/>\n    \/\/alert('2967 ' +  othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0]);<br \/>\n    if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':') != -1) {<br \/>\n    \/\/alert((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':')[1].split(',')[0] + ' ' + jdc + ' ' + lotsofsix[jdc]);<br \/>\n    jdc=Math.floor(Math.random() * lotsofsix.length);<br \/>\n    alert('This ' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ' sestet snippet is  ... ' + lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':')[1].split(',')[0])].replace(\/\\&lt;br\\&gt;\/g, String.fromCharCode(10)));<br \/>\n    }<br \/>\n    } else <\/font>if (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'details' || (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'body' && blurbsuffix == '') || noway) {<br \/>\n    \/\/alert(1967);<br \/>\n    noway=true;<br \/>\n    if (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'body') { noway=false; }<br \/>\n    } else {<br \/>\n    \/\/alert(blurbsuffix + ' ... ' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0]);<br \/>\n    if (('' + othis.id) != '') {  extras=' ID=' + othis.id; idfound=true; } else {<br \/>\n    if (eval('' + jdc) &gt;= eval('' + lotsofsix.length)) { jdc=0;  }<br \/>\n    if (eval('' + detnum) &gt; 0) {<br \/>\n    if (lotsofsix[jdc].split(';')[idc].indexOf('&lt;br&gt;') != -1) {<br \/>\n    if (document.getElementById('det' + eval(-1 + detnum))) {<br \/>\n    document.getElementById('det' + eval(-1 + detnum)).open=false;<br \/>\n    }<br \/>\n    }<br \/>\n    }<br \/>\n    blurb+='&lt;br&gt;' + lotsofsix[jdc].split(';')[idc].replace('&lt;br&gt;', '&lt;br&gt;&lt;details onclick=\"noway=false;\" id=det' + detnum + ' open&gt;&lt;summary&gt;') + detsuffix; detsuffix='';<br \/>\n    }<br \/>\n    detsuffix='';<br \/>\n    if (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'body' && !idfound) {<br \/>\n    var suf=tableize(blurb.replace('&lt;\/summary&gt;&lt;br&gt;', '&lt;\/summary&gt;') + blurbsuffix);<br \/>\n    if (suf != '') { document.getElementById('results').innerHTML+=suf; }<br \/>\n    \/\/alert(document.getElementById('results').innerHTML);<br \/>\n    detsuffix='';<br \/>\n    blurbsuffix='';<br \/>\n    detnum++;<br \/>\n    } else if (idfound) {<br \/>\n    detsuffix='';<br \/>\n    blurbsuffix='';<br \/>\n    document.getElementById('results').innerHTML+=othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + extras + ' clicked.&lt;br&gt;';<br \/>\n    }<font color=blue> else if (('' + event.target.outerHTML).substring(1).split(' ')[0].split('&gt;')[0] != 'button') {<br \/>\n    \/\/alert(967);<br \/>\n    if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':') != -1) {<br \/>\n    jdc=Math.floor(Math.random() * lotsofsix.length);<br \/>\n    alert('This ' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ' sestet snippet is  ... ' + lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + ':')[1].split(',')[0])].replace(\/\\&lt;br\\&gt;\/g, String.fromCharCode(10)));<br \/>\n    }<\/font><br \/>\n    }<br \/>\n    jdc++;<br \/>\n    }<br \/>\n  }<br \/>\n<\/code><\/p>\n<p> &#8230; in <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html-GETME\">the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html-GETME\">&#8220;proof of concept&#8221; onclick_propagation.html<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html\" title=\"Click picture\">Sestet web application<\/a> you can also <a href='#myifop'>try below<\/a>.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/onclick-event-propagation-event-target-tutorial\/'>Onclick Event Propagation Event Target Tutorial<\/a>.<\/p-->\n<hr>\n<p id='oeppt'>Previous relevant <a target=_blank title='Onclick Event Propagation Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/onclick-event-propagation-primer-tutorial\/'>Onclick Event Propagation Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Onclick Event Propagation Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.jpg\" title=\"Onclick Event Propagation Primer Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Onclick Event Propagation Primer Tutorial<\/p><\/div>\n<p>A basis for web application event driven programming strategies references &#8230;<\/p>\n<ul>\n<li>element nesting and inheritance &#8230;<\/li>\n<li>the default event propagation up through the element hierarchy<\/li>\n<\/ul>\n<p>Of course you can ignore how this event &#8220;bubbling&#8221; can be harnessed, and indeed, we normally do not harness this event programming abilities in webpages, but not today!   Today, we want to harness, via &#8220;onclick&#8221; event (sharing a common &#8230;<\/p>\n<p><code><br \/>\n  function moi(othis) {<br \/>\n    var extras='';<br \/>\n    if (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'details' || (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'body' && blurbsuffix == '') || noway) {<br \/>\n    noway=true;<br \/>\n    if (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'body') { noway=false; }<br \/>\n    } else {<br \/>\n    \/\/alert(blurbsuffix + ' ... ' + othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0]);<br \/>\n    if (('' + othis.id) != '') {  extras=' ID=' + othis.id; idfound=true; } else {<br \/>\n    if (eval('' + jdc) &gt;= eval('' + lotsofsix.length)) { jdc=0;  }<br \/>\n    if (eval('' + detnum) &gt; 0) {<br \/>\n    if (lotsofsix[jdc].split(';')[idc].indexOf('&lt;br&gt;') != -1) {<br \/>\n    if (document.getElementById('det' + eval(-1 + detnum))) {<br \/>\n    document.getElementById('det' + eval(-1 + detnum)).open=false;<br \/>\n    }<br \/>\n    }<br \/>\n    }<br \/>\n    blurb+='&lt;br&gt;' + lotsofsix[jdc].split(';')[idc].replace('&lt;br&gt;', '&lt;br&gt;&lt;details onclick=\"noway=false;\" id=det' + detnum + ' open&gt;&lt;summary&gt;') + detsuffix; detsuffix='';<br \/>\n    }<br \/>\n    detsuffix='';<br \/>\n    if (othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] == 'body' && !idfound) {<br \/>\n    var suf=tableize(blurb.replace('&lt;\/summary&gt;&lt;br&gt;', '&lt;\/summary&gt;') + blurbsuffix);<br \/>\n    if (suf != '') { document.getElementById('results').innerHTML+=suf; }<br \/>\n    \/\/alert(document.getElementById('results').innerHTML);<br \/>\n    detsuffix='';<br \/>\n    blurbsuffix='';<br \/>\n    detnum++;<br \/>\n    } else if (idfound) {<br \/>\n    detsuffix='';<br \/>\n    blurbsuffix='';<br \/>\n    document.getElementById('results').innerHTML+=othis.outerHTML.substring(1).split(' ')[0].split('&gt;')[0] + extras + ' clicked.&lt;br&gt;';<br \/>\n    }<br \/>\n    jdc++;<br \/>\n    }<br \/>\n  }<br \/>\n<\/code><\/p>\n<p> &#8230; event &#8220;onclick&#8221; logic Javascript function, as above) propagation, the sharing of piecing together the content display of &#8230;<\/p>\n<p><code><br \/>\nSestet poems and rhymes<br \/>\n<\/code><\/p>\n<p> &#8230; where the six lines of poetry are written out by the &#8220;onclick&#8221; events of &#8230;<\/p>\n<ol>\n<li>button<\/li>\n<li>td<\/li>\n<li>tr<\/li>\n<li>tbody<\/li>\n<li>table<\/li>\n<li>body<\/li>\n<\/ol>\n<p> &#8230; in hierarchical order in the <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html_GETME\">&#8220;proof of concept&#8221; onclick_propagation.html<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html\" title=\"Click picture\">Sestet web application<\/a> you can also try below &#8230;<\/p>\n<p><iframe id=myifop style=\"width:100%;height:600px;\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/onclick_propagation.html\"><\/iframe><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d58771' onclick='var dv=document.getElementById(\"d58771\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/onclick\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d58771' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d58777' onclick='var dv=document.getElementById(\"d58777\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/event\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d58777' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d58783' onclick='var dv=document.getElementById(\"d58783\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/type\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d58783' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>On top of yesterday&#8217;s Onclick Event Propagation Event Target Tutorial &#8230; event.target &#8230; theme, today we have a &#8230; event.type &#8230; &#8230; theme, the added bonus being that we finally got to use the word &#8220;touchdown&#8220;, in all seriousness, in &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/onclick-event-propagation-event-type-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[2397,4291,2143,354,400,4292,4293,513,564,576,608,652,2621,4290,861,4288,3341,967,997,2786,4289,4287,3883,3565,1319,1671,1433],"class_list":["post-58783","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-bubble","tag-bubbling","tag-case","tag-dom","tag-event","tag-event-target","tag-event-type","tag-google","tag-hierarchy","tag-html","tag-inheritance","tag-javascript","tag-nesting","tag-nursery-rhyme","tag-onclick","tag-poem","tag-poetry","tag-popup","tag-programming","tag-propagation","tag-rhyme","tag-sestet","tag-switch","tag-target","tag-tutorial","tag-type","tag-window-open"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/58783"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=58783"}],"version-history":[{"count":10,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/58783\/revisions"}],"predecessor-version":[{"id":58793,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/58783\/revisions\/58793"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=58783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=58783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=58783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}