javascript - Scripts in HTML -


another question have this; want execute script (docs()) when click text, i've tried using code:

<p><span class="skill">documentation can found here.<script>docs()</script></span></p> 

but doesn't work, ideas?

try use onclick

<p><span class="skill" onclick="docs()">documentation can found here.</span></p> 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -