Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

117
Visualizações
Javascript comment iframe reply

I have some code to run blogger comment form, I gave yrfr id to a button , with this the comment form is loading.

I have a reply button with class reply-to but it doesn't work without clicking the button with yrfr id.

How can I make the comment form work when I press the reply button?

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
        })
    }
});
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda