Is it possible to dynamically load JavaScript code from an external site when a user clicks on a button? For example:
<button onclick="LoadJSFromURL('facebook.com/blablabla')" />
After the user presses the button, we would attach a new script to the document like this:
<script> Share.WorkUrl="http://MySite.com"; Share.UserId=5 </script> <script src="http://Facebookcom/blabalbal" ></script>
Finally, how can we ensure that this newly loaded script is executed as intended?