Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how do I call a function in a function in onclick?

I’d like to call my function in a function
it looks like that:
(js)

function ingadd (){
 \\code
  function recpag (){
    \\code}
now how do I call recpag in onclick(html)
I tried like a regular function but it didn't work..
 thank you ♡♡

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Hi it appears you are new to javascript. There are a lot of online resources on javascript fundamentals, and those places will probably provide more benefits for a beginner.

I googled a random one:
https://javascript.info/function-basics#functions-comments

In that section, the code sample uses a "isPrime" function within a "showPrimes" function.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading