J
Jake j
Yes, this is a simple and straightforward thing to do as long as the .js
file doesn't use a function. When I try a script with a function in a
js file I can't get it to work (though it works fine within the html
file). I'm guessing that there's some syntax or convention I'm not
doing right.
What I most need is an example. Can someone write a js file with an
alert command, for example, to keep it simple. Perhaps something like:
var name = prompt('What is your name?')
document.write('Hello ' + name)
Then, call this js file from an html file. After you test it and make
sure it works, please send me the two parts.
I've looked but can't find any working examples or discussions of this
particular issue.
~ J
file doesn't use a function. When I try a script with a function in a
js file I can't get it to work (though it works fine within the html
file). I'm guessing that there's some syntax or convention I'm not
doing right.
What I most need is an example. Can someone write a js file with an
alert command, for example, to keep it simple. Perhaps something like:
var name = prompt('What is your name?')
document.write('Hello ' + name)
Then, call this js file from an html file. After you test it and make
sure it works, please send me the two parts.
I've looked but can't find any working examples or discussions of this
particular issue.
~ J