Alert() from an Ajax loaded page?

Oh I see what you mean.

I actually need the script to run some php so I can’t just use JS like that. I’m just keeping my example script simple to figure out how to run javascript from an ajax loaded script.

Sorry if I wasn’t clear. Do you know how to achieve this result?