\r\n\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n\r\n\r\n


\r\nTo put it in another window, use something along the lines of this:
\r\nfunction search()\r\n{\r\n\tq=document.form.q.value;\r\n\tif(q) window.open(\"http://www.google.com/search?q=\"+escape(q), \"GSearch1\", \"width=400, height=300, location=yes, menubar=yes, status=yes, \r\n\r\ntoolbar=yes, scrollbars=yes, resizable=yes\")\r\n}\r\n

All these are coded for IE because that's what I have at work.
You seemed to have a function so I guess you were doing something more complicated and I guess the parsing of frames was to find the address bar or something? Not sure about the document structure of what you were doing but what I have here works so if you take that URL and use the window.open, you should be ok. You'll need to take out the IE specific features (the parameter list that comes third in window.open's arguments) but they should default ok in saner browsers.
\r\n\r\n
\r\nThis uses text selection and might work as a nodelet...I don't have the nodelet capacity (127 characters required) to check it but since e2 doesn't seem to use frames at all, it should be ok.
I'll look into bookmarklets later if nobody gives me work to do (unlikely).

\r\n\r\n\r\n\r\n\r\n

\r\nHERE IT IS

\r\njavascript:Qr=document.getSelection();if(!Qr){alert('Please highlight text on this page to use this function');};if(Qr){w=window.open('http://www.google.com/search?q=%22'+Qr+'%22','Google','width=800,height=600,top=0,left=0,scrollbars=yes,resizable=yes,modal=no,location=yes');w.focus();}\r\n
\r\n


\r\nThis works in IE - BP (who wishes he could have Opera at work but there you go).
\r\n
\r\njavascript:window.open(\"http://www.google.com/search?q=\"+escape(document.selection.createRange().text),\"G\",\"\");void 0\r\n

\r\n\r\nThis wotks in Mozilla, but barfs in IE:\r\n

\r\njavascript:Qr=document.getSelection();if(!Qr){alert('Please highlight text on this page to use this function');};if(Qr){w=window.open('http://www.google.com/search?q=%22'+Qr+'%22','Googled','width=800,height=600,top=0,left=0,scrollbars=yes,resizable=yes,modal=no,location=yes');window.focus();}","title":"wertperch perches","node_id":1261978,"public":0,"lockedby_user":0},"is_public":0,"is_locked":0,"members":[],"can_access":0,"type":"collaboration","unlock_msg":null,"can_edit":0,"lockedby":null,"is_locked_by_me":0,"user":{"is_editor":0,"is_admin":0,"node_id":"779713","is_guest":1,"title":"Guest User"}},"lastCommit":"7fea468468c9e694b51ba1c454cddfde8737139c","chatterbox":{"roomTopic":"Massive site change may have surfaced various issues. See: [root log: mid-December 2025: Writeup display overhaul], and report any problems. - Publication problems fixed. Thank you -[jaybonci|jb]","messages":[],"showMessagesInChatterbox":1,"roomName":"outside","miniMessages":[]},"title":"wertperch perches","user":{"chanop":false,"developer":true,"title":"Guest User","node_id":"779713","admin":false,"in_room":"0","editor":false,"guest":true},"assets_location":"https://s3-us-west-2.amazonaws.com/deployed.everything2.com/7fea468468c9e694b51ba1c454cddfde8737139c","nodetype":"collaboration","guest":1,"node":{"title":"wertperch perches","type":"collaboration","createtime":1014943859,"node_id":"1261978"},"pageheader":{},"node_id":"1261978","architecture":"aarch64","hasMessagesNodelet":0,"recaptcha":{"publicKey":"6LeF2BwsAAAAAMrkwFG7CXJmF6p0hV2swBxYfqc2","enabled":true},"reactPageMode":true,"nodeletorder":["sign_in","recommended_reading","new_writeups"],"developerNodelet":{},"use_local_assets":"0","lastnode_id":null}