Triggering Click Event will Retrun true but will not work

Here is a target for the test:

https://demo.wpjobboard.net/wp-login.php

I need to click on login button using javascript and I use this peice of code:

document.querySelectorAll('[id="wp-submit"]')[0].dispatchEvent(new Event('click'));

I need to use dispatchEvent because the click event here can be replaced with any event.

It will return true but it won’t work. where is the problem?

121 thoughts on “Triggering Click Event will Retrun true but will not work”

  1. hello there and thank you for your info – I have certainly picked up something new from right here.
    I did however expertise a few technical points using this site, since
    I experienced to reload the web site lots of times previous to I could get it to load correctly.
    I had been wondering if your web host is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google and could damage your high quality score if ads and marketing
    with Adwords. Anyway I’m adding this RSS to my email and can look out for much more of your respective exciting content.
    Make sure you update this again very soon.

    Reply
  2. I love your blog.. very nice colors & theme. Did you make this
    website yourself or did you hire someone to do it for you?
    Plz reply as I’m looking to design my own blog and would
    like to find out where u got this from. kudos

    Reply
  3. each time i used to read smaller posts that also clear
    their motive, and that is also happening with this piece of writing which I am
    reading at this place.

    Reply
  4. whoah this weblog is fantastic i love reading your posts.
    Keep up the great work! You recognize, many persons are hunting round for this information, you could help them
    greatly.

    Reply
  5. Hmm it seems like your blog ate my first comment (it was extremely long)
    so I guess I’ll just sum it up what I submitted
    and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m
    still new to the whole thing. Do you have any helpful hints for newbie blog writers?
    I’d genuinely appreciate it.

    Reply
  6. Good day I am so happy I found your website, I really found you by mistake, while I was looking on Askjeeve for something else, Anyhow I am here now and would just
    like to say thanks for a tremendous post and a all round thrilling blog (I also love the theme/design), I don’t have time to go
    through it all at the minute but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read a
    lot more, Please do keep up the great work. cheap flights http://1704milesapart.tumblr.com/ cheap flights

    Reply
  7. Greetings from Carolina! I’m bored to death at work
    so I decided to check out your blog on my iphone during lunch
    break. I love the info you present here and can’t wait
    to take a look when I get home. I’m shocked at
    how fast your blog loaded on my mobile .. I’m not even using
    WIFI, just 3G .. Anyhow, fantastic site! scoliosis surgery
    https://0401mm.tumblr.com/ scoliosis surgery

    Reply

Leave a Comment