Q
Question Boy
I have a particular need to pull some javascript from a text file and
run it within an html page.
<script>
function somefuntion(){
...
}
</script>
Let say I have a text file (js01.txt) with proper javascript within
it, say for illustrative purposes:
alert('This is a simple alert message!');
Is there a way to pull this into the somefuntion() above and execute
it. Keeping the html doc untouched but allowing me to update the txt
as needed.
Thank you for your guidance. It is truly appreciated.
QB
run it within an html page.
<script>
function somefuntion(){
...
}
</script>
Let say I have a text file (js01.txt) with proper javascript within
it, say for illustrative purposes:
alert('This is a simple alert message!');
Is there a way to pull this into the somefuntion() above and execute
it. Keeping the html doc untouched but allowing me to update the txt
as needed.
Thank you for your guidance. It is truly appreciated.
QB