Do you need to check those urls before game loading? then ajax with jQuery.
Or AJAX plugin if you need to do that inside the game.
"User type one of those?" Type, you mean type of "typing on the keyboard", because you wrote "user type" hahaha
Don't understand what you want.