Web Analytics Made Easy -
StatCounter Javascript auto click on pageload. - CodingForum

Announcement

Collapse
No announcement yet.

Javascript auto click on pageload.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript auto click on pageload.

    Hi, i need a javascript for my website.

    what i wanna do is that when smone loads my website, the script initiate the left mouse click automatically. that is on page load mouse click is stimulated.

    dnt know if its possible or not. need help.
    Thanx in advance

  • #2
    No idea why you would want to do this, but...

    Code:
    document.getElementById(”whatever”).click();
    ... should do the trick.

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎