Is there any possibility to run javascript only when the button has been clicked. I don't care if the load might take a bit, it's just that I dont need it to load with the page.
So for example we have a button:
<div id="proceed"></div>
Then when that button has been clicked we have a popup window with 2 more buttons.
So one of the buttons from popup will be like confirm run it and second one will simply close popup.
And what I want is to run following script src:
src="http://fileice.net/gateway/mygate.php?id=4465766c4278366467523838"
When the "proceed" has been clicked. So script will have time to load up till user read what popup message says.
So... any chances to run script src on button click?
EDIT:
The gateway conflicts with some other scripts and thats the main reason why to run it on click only.