Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. get element object from the point where the mouse at?
  2. var id = chrome.contextMenus.create({"title": "Test", "contexts":['editable'],
  3.                                    "onclick": OnClick});
  4.  
  5. function OnClick(info, tab) {
  6.   if(info.editable == true){
  7.     //and then? how to do?  how can i get the element object?
  8.   }
  9. }