M8, I don't want to load the javascript when the page loads, that's the point. Your first suggestion was good, only that it loads the script in a new file. I wanted to display, for example, just under the
onclick button.
So, short story, that's what I have now:
<input type="submit" onclick="test()" />
<script language="javascript" type="text/javascript">
function test()
{
document.write("<script language='JavaSc" + "ript' src='http://atat.ro/js/calendar-ortodox.js'></sc" + "ript>")
}
</script>
Q: is there a way to run it on the same page so the script will display the content under the button?
Thanks!
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Offline 90 posts
since May 2009