Thank you for your reply, but I'm still having trouble. When I run this, I should always get an alert window, shouldn't I? That isn't happening. And if I try a line like
after executing the function, I get an error message saying html is undefined.
I'm sorry I don't know what regex is, but I did load the prototype framework v18.104.22.168 onto the server.
Also, when I was trying to learn what Ajax is, I saw this on a tutorial:
Did You Know? As a security measure, the XMLHTTPRequest object can generally only make calls to URLs within the same domain as the calling page and cannot directly call a remote server.
This makes me wonder if this even has a chance of working. What do you think?