10/19/2005

Compose Gmail in New Window

I soooo ripped this from Dougie at the above link and while not knowing much (read: any) JS, I was able to pull out the link and selection info and make it just pull up a blank messaged that's why there some vestigial code in there.

So here it is for all your Gmailing goodness.

javascript:popw='';Q='';x=document;y=window;if(x.selection) {Q=x.selection.createRange().text;} else if (y.getSelection) {Q=y.getSelection();} else if (x.getSelection) {Q=x.getSelection();}popw = y.open('https://mail.google.com/mail?view=cm&tf=0' + escape(document.title) + '&body=' + escape('\n') ,'gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if (!document.all) T = setTimeout('popw.focus()',50);void(0);

No comments: