views:

62

answers:

2

Is it possible to register the selection (may it be via a click or other ways) of a text field (of any kind) with my extension and open up a separate input interface?

+1  A: 

Yes. You can capture the user interaction with JavaScript in a content script. And if by “separate input interface”, you’re referring to something within the browser, you can also inject UI or open a new page with a content script. If you’re referring to another app, you can launch one with native code in an NPAPI plugin.

byoogle
+1  A: 

You can use a prompt...

<script>
function disp_prompt() {
  var fname=prompt("What is your name?");
  alert("Your name is " + fname);
}
</script>
<body onload=disp_prompt()>

If you want to have this popup onclick, You need to utilize a background page

chrome.browserAction.onClicked.addListener(function(tab){

http://code.google.com/chrome/extensions/browserAction.html#event-onClicked

David

related questions