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

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -