Hi All,
I'm trying to figure out a way to assign a snippet of JS to a keyboard hotkey (Ctrl+Space in this case) The aim is to:
1) Bookmark a page to Googlebookmarks, Get a New (and small) window to open
2) After bookmarking, the window should automatically close, and the user can resume browsing
This is the Snippet of code I wanted to use (needs you to be logged into your gmail/google account first):
javascript:function()var%20a=window,b=document,c=encodeURIComponent,d=a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"bkmk_popup","left="+((a.screenX||a.screenLeft)+10)+",top="+((a.screenY||a.screenTop)+10)+",height=420px,width=550px,resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},300)})();
Can anyone help?
Edit: The
BBcode seems to be screwing up at my end, let me know if you guys can't read it, I'll remove the tags accordingly
Edited 1 time(s). Last edit at 05/20/2011 06:43PM by machinesmith.