Youssef Sakuragi Youssef Sakuragi - 1 year ago 67
jQuery Question

How Do I only reload one image

I have a problem with images. I only want to reload 1 image when I click on the context menu.


title: "Does it work?",
onclick: clickOrigin,


When i click on the context menu
will be executed. But what code do I need so that
will reload only the picture i have right clicked on?

Answer Source

It seems you're going to be using chrome.contextMenus.update(integer or string id, object updateProperties, function callback) as mentioned in the Google contextMenus guide. It updates a previously created context menu item. Looking at the parameters that it accepts on onClick, it seems to accept, images, videos, and audio.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download