<html>
<head>
<title>Test Page</title>
<script type="text/javascript">
var h=document.getElementsByTagName("head")[0];
function loadScript(url){
var f=document.createElement("script");
f.type="text/javascript";
f.id=d;
f.src=url;
h.appendChild(f);
}
</script>
</head>
<body>
<button onclick="loadScript('http://localhost/alert.js')">Test Alert</button><br />
<button onclick="loadScript('http://localhost/info.js')">Get My Info</button><br />
</body>
</html>