Tengo un código para ejecutar el formulario de comentarios de Blogger, le di una identificación de yrfr a un botón, con esto se carga el formulario de comentarios.
Tengo un botón de respuesta con respuesta de clase, pero no funciona sin hacer clic en el botón con la identificación de yrfr.
¿Cómo puedo hacer que el formulario de comentarios funcione cuando presiono el botón de respuesta?
document.getElementById("yrfr").addEventListener("click", function() { var a = document, b = a.getElementById("comment-editor"), d = b.getAttribute("data-src"); if (b.setAttribute("src", d), 1 == comment) { var f = a.getElementsByClassName("reply-to"), c = a.getElementById("threaded-comment-form"), h = f.length, k = function(b, d, e, f) { b.addEventListener("click", function() { var c = b.getAttribute("data-reply-to"); a.getElementById("c" + c).appendChild(d); e.src = f + "&parentID=" + c }) }; for (i = 0; i < h; i++) k(f[i], c, b, d); var l = a.getElementsByClassName("comment-form")[0]; a.getElementById("yrfr").addEventListener("click", function() { l.appendChild(c); b.src = d }) } });