=============== bigbackbutton.js ===============
// fire function if clicked
document.onmousedown = checkPos;
function checkPos(e){
//check if we are on the left edge of window
if(e.pageX == 0){
// LMB goes back
if(e.button == 0){
history.go(-1);
// RMB goes forward
}else if(e.button == 2){
history.go(1);
// MMB closes tab
}else if(e.button == 1){
chrome.tabs.getSelected( null, function(tab)
{ chrome.tabs.remove(tab.id); return true; });
}
}
return true;
}
====================
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
window.oncontextmenu = function () { return false; }
I've also tried returning false for the click event handler. This has
really got me stumped, and it's the only thing stopping me from
finishing my first extension.
Thanks, Hemmer
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>