logo
Search
showing results for - "onclick on non button"
Pedro
23 Jan 2020
1var ele = document.getElementById('x');
2if(typeof ele.click == 'function') {
3  ele.click()
4} else if(typeof ele.onclick == 'function') {
5  ele.onclick()
6}
source
similar questions
button is not calling js functionhtml button click only oncejavascript enable a button once an input text filledhow to make a div appear onclickbutton onclick inside whole clickable divhow to allow the onclick event of a string in javascriptdocument on click not workingalpiee js hide amother button clickhide div on button click javascript
queries leading to this page
onclick event on non buttononclick noncejavascript onclick get eventhow to give event to onclick methodcant call the event handler on a seperate pageclickable element need to don 27t trigger anotheronclick nonoeonclick eventhandler thisonclick for non buttons htmljavascript get name of object onclickdom adding onclick attributejs onclick event waysonclick on non buttonjavascript onclick non buttenonclick 28 29 methid documentationjavascript get event in onclickonclick no eventadd additional onclick event you have no access to javascriptonclick on non button
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue