Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

112
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!