javascript - How to use onclick function inside <a> tag which loads a script -


i don't know coding wanted use onclick function inside tag loads script externally like

 <div id="abc"><a onclick="https://abcd.com/script_include.php?id=226276"><div id="xyz"></div></a></div> 

i used above , know won't work should load script

the onclick-attribute must contain javascript expression or function call. link script not valid.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -