jquery - Passing a variable value to a variable in a script function (Javascript) -
I would like to know how to pass the value of a variable to a variable in a java script function which is written in the HTML file at top.
I wrote it like this:
myjsfile.js : HTML file : I can not find the output Please help! thank you in advanced. Actually, I'm trying to create a jquery plugin like Google Analytics. / pre>
var abc = "10";
& lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; (Function () {var test = document.createElement ('script'); test.type = 'text / javascript'; test.async = true; test.src = 'testquery.js'; var s = document.getElementsByTagName ( 'Script') [0]; s.parentNode.insertBefore (test, s); warning (ABC);}) (); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Comments
Post a Comment