onclick inside javascript function -


I am working on a project and in this project I got the following code inside the .js file.

// Continue button (Go to the next field) this.ctrlContinue = createElement ('Button', {cName: 'fs-continu', Internal: 'Continue', Attach: this .ctrls}); This._showCtrl (this.ctrlContinue);

me onclick = "setBrowserFrameSource (); return false;" needs to be added to the code above. I have tried:

cName: 'FS-release' "Onclick =" setBrowserFrameSource (); Return false;

Thank you for helping.

Here are some additional code comments:

 < Code> / ** * addControls function * Create and insert structure for control * / FForm.prototype._addControls = function () {// main control wrapper This .ctls = createElement ('div', {cName: 'FS- Control ', append to: this.el});  

Thanks for the reply from Rafael Amacetseen, I changed the following code:

  this CtrlContinue = createElement ('button', {cName: 'FS- Dari ', Internal:' Continue ', Attach: this.ctrls}); This.ctrlContinue.onclick = function () {console.log (' test ');}; This._showCtrl (this.ctrlContinue); < / Code> 

Now my instinct says that I need to do something with this console.log ('test'); but what? > Change in setBrowserFrameSource ()?

Itemprop = "text">

Try something from

  this.ctrlContinue.onclick = function () {// your code is here};  

Hope this helps


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -