Javascript external Search

Hi i’m trying to create a search field where a user can search a External Javascript file and display my results in flash… I know you can do it in PHP and ASP, but can it be done in Javascript if so how.?