> Need help writing a feature in Javascript.?

Need help writing a feature in Javascript.?

Posted at: 2014-12-18 
I am writing a very basic Chrome extension. I'm having a bit of trouble with the Javascript since the HTML and JS files are separate. Basically, I have written a Flickr search extension. It displays pictures in a popup. If I hard code in the keyword to search, it runs fine. I want to be able to input a keyword into a text box, press search button, and have the popup display the new images. How do i set the Javascript variable that I'm using to search Flickr using the user input from an HTML text box?