Alert() from an Ajax loaded page?

Don’t use innerHTML to add the content after you retrieve it from the server.

If you add the content using the JavaScript Document Object Model then any scripts you add will then be able to run.