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 :

  var abc = "10";   

HTML file :

  & 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;   

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>

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -