javascript - How does LinkedIn script read the api_key on the script tag? -
the linkedin getting started page shows following way include javascript file.
<script type="text/javascript" src="http://platform.linkedin.com/in.js"> api_key: your_api_key_goes_here </script>
my question - how can this? cool if this:
<script type="text/javascript" src="helloworld.js"> inputparam: hello world! </script>
and in helloworld.js
function getparam(name) { /* fill in logic here, somehow should return "hello world!" */ } alert(getparam('inputparam'));
Comments
Post a Comment