gContextMenu

  • 版本网址缩略名: Extensions/Firefox/gContextMenu
  • 版本标题: gContextMenu
  • 版本 id: 304529
  • 创建于:
  • 创建者: ziyunfei
  • 是否是当前版本?
  • 评论

修订内容

概述

gContextMenu是火狐里与右键菜单相关的一个全局对象.

源码位置

C:\Program Files\Mozilla Firefox\chrome\browser.jar\content\browser\nsContextMenu.js

属性

_hasMultipleBGImages  
bgImageURL  
browser  
ellipsis  
hasBGImage  
getimageURL  
inFrame  
isContentSelected  
isDesignMode  
isFrameImage  
isTextSelected  
link  
linkProtocol  
linkURI  
linkURL  
mediaURL  
menu  
onAudio  
onCanvas  
onCompletedImage  
onEditableArea  
onImage 判断当前右键菜单是否点击了一个图像元素
onKeywordField  
onLink  
onLoadedImage  
onMailtoLink  
onMathML  
onSaveableLink  
onStandaloneImage  
onTextInput  
onVideo  
shouldDisplay  
target  

方法

addBookmarkForFrame  
addDictionaries  
bookmarkLink  
bookmarkThisPage  
cloneNode  
copyEmail  
copyMediaLocation  
disableSetDesktopBackground  
fullScreenVideo  
getComputedStyle  
getComputedURL  
getLinkProtocol  
getLinkURI  
getLinkURL 获取所点击链接的URL
initClipboardItems  
initItems  
initMediaPlayerItems  
initMenu  
initMiscItems  
initNavigationItems  
initOpenItems  
initSaveItems  
initSpellingItems  
initViewItems  
isContentSelection  
isImageBlocked  
isLinkSaveable  
isTargetAFormControl  
isTargetAKeywordField  
isTargetATextBox  
isTextSelection  
linkText  
mediaCommand  
onDestroy  
openFrame  
openFrameInTab  
openLink  
openLinkInTab  
printFrame  
reloadFrame  
reloadImage  
saveFrame  
saveImage  
saveLink  
saveMedia  
savePageAs  
sendImage  
sendLink  
sendMedia  
sendPage  
setDesktopBackground  
setItemAttr  
setItemAttrFromNode  
setTarget  
shouldShowSeparator  
showItem  
showOnlyThisFrame  
switchPageDirection  
toString  
toggleImageBlocking  
viewBGImage  
viewFrameInfo  
viewFrameSource  
viewImageInfo  
viewInfo  
viewMedia  
viewPartialSource  

 

修订版来源

<h2 id=".E6.A6.82.E8.BF.B0">概述</h2>
<p>gContextMenu是火狐里与右键菜单相关的一个全局对象.</p>
<h2 id=".E6.BA.90.E7.A0.81.E4.BD.8D.E7.BD.AE">源码位置</h2>
<pre>
C:\Program Files\Mozilla Firefox\chrome\browser.jar\content\browser\nsContextMenu.js</pre>
<h2 id=".E5.B1.9E.E6.80.A7">属性</h2>
<table>
  <tbody>
    <tr>
      <td>_hasMultipleBGImages</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>bgImageURL</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>browser</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>ellipsis</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>hasBGImage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>getimageURL</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>inFrame</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isContentSelected</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isDesignMode</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isFrameImage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isTextSelected</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>link</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>linkProtocol</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>linkURI</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>linkURL</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>mediaURL</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>menu</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onAudio</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onCanvas</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onCompletedImage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onEditableArea</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onImage</td>
      <td>判断当前右键菜单是否点击了一个图像元素</td>
    </tr>
    <tr>
      <td>onKeywordField</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onLink</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onLoadedImage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onMailtoLink</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onMathML</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onSaveableLink</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onStandaloneImage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onTextInput</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onVideo</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>shouldDisplay</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>target</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id=".E6.96.B9.E6.B3.95">方法</h2>
<table>
  <tbody>
    <tr>
      <td>addBookmarkForFrame</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>addDictionaries</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>bookmarkLink</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>bookmarkThisPage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>cloneNode</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>copyEmail</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>copyMediaLocation</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>disableSetDesktopBackground</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>fullScreenVideo</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>getComputedStyle</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>getComputedURL</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>getLinkProtocol</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>getLinkURI</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>getLinkURL</td>
      <td>获取所点击链接的URL</td>
    </tr>
    <tr>
      <td>initClipboardItems</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>initItems</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>initMediaPlayerItems</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>initMenu</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>initMiscItems</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>initNavigationItems</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>initOpenItems</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>initSaveItems</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>initSpellingItems</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>initViewItems</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isContentSelection</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isImageBlocked</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isLinkSaveable</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isTargetAFormControl</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isTargetAKeywordField</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isTargetATextBox</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>isTextSelection</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>linkText</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>mediaCommand</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>onDestroy</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>openFrame</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>openFrameInTab</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>openLink</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>openLinkInTab</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>printFrame</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>reloadFrame</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>reloadImage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>saveFrame</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>saveImage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>saveLink</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>saveMedia</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>savePageAs</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>sendImage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>sendLink</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>sendMedia</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>sendPage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>setDesktopBackground</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>setItemAttr</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>setItemAttrFromNode</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>setTarget</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>shouldShowSeparator</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>showItem</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>showOnlyThisFrame</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>switchPageDirection</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>toString</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>toggleImageBlocking</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>viewBGImage</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>viewFrameInfo</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>viewFrameSource</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>viewImageInfo</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>viewInfo</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>viewMedia</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>viewPartialSource</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<p>&nbsp;</p>
恢复到这个版本