Google Chrome Board
February 06, 2012, 02:10:54 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Been meaning to throw some schnazz on the forum for some time, and well, it's here!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Google Chrome Split Screen  (Read 8232 times)
TYPELiFE
Administrator
Newbie
*****
Posts: 247




View Profile WWW Email
« on: October 19, 2008, 12:52:21 AM »

Want to maximize your screen real estate in Google Chrome?

Use this nifty bookmarklet to turn Google Chrome into a "split screen" browser, loading one web site in the left panel, and another inside the right one.

Code:
javascript:A14nH=location.href;L3f7=prompt('Choose%20File%201',A14nH); R1Gh7=prompt('Choose%20File%202',L3f7); if(L3f7&&R1Gh7){Fr4Q='<frameset%20cols=\'*,*\'>\n<frame%20src=\''+L3f7+'\'/>';Fr4Q+='<frame%20src=\''+R1Gh7+'\'/>\n';Fr4Q+='</frameset>'; with(document){write(Fr4Q); void(close())}}else{void(null)}

Clicking the bookmark will prompt you twice for different URL's, the first URL you give it will load the left side, and the second URL will load the right.

Dual viewing in Google Chrome (or any web browser) is extremely useful, especially for comparing search engine results (use Google and Yahoo! right next to each other) or looking up a reference on wikipedia while you're writing something in another page. Perhaps you need to do a visual comparison of two websites? Uses for this bookmark are limitless!
Logged

screasey
Newbie
*
Posts: 2


View Profile Email
« Reply #1 on: December 11, 2008, 09:49:52 PM »

Or, if you want individual address bars...

Code:
javascript:url=location.href;if((urlL=prompt('Left%20URL',url))&&(urlR=prompt('Right%20URL',urlL))){with(document){write(
'<html><body%20onload="q=String.fromCharCode(34);f=window.frames[\'urlF\'].document;f.open();f.write(\'<html><body%20style=
\\\'padding:0;margin:0\\\'><table%20width=\\\'100%\\\'%20cellspacing=0%20cellpadding=0><tr><td%20width=\\\'50%\\\'><input%20id=
urlL%20onkeydown=\\\'if(window.event.keyCode==13)parent.leftF.location.href=this.value\\\'%20style=\\\'width:100%\\\'%20type=
\\\'text\\\'%20value=\\\''+urlL+'\\\'/></td><td%20width=\\\'0\\\'><button%20onclick=\\\'parent.leftF.location.href=document.
getElementById(\'+q+\'urlL\'+q+\').value\\\'>Go</button></td><td%20width=\\\'50%\\\'><input%20id=urlR%20onkeydown=\\\'if(window.
event.keyCode==13)parent.rightF.location.href=this.value\\\'%20style=\\\'width:100%\\\'%20type=\\\'text\\\'%20value=\\\''+urlL+
'\\\'/></td><td%20width=\\\'0\\\'><button%20onclick=\\\'parent.rightF.location.href=document.getElementById(\'+q+\'urlR\'+q+\').
value\\\'>Go</button></td></tr></table></body></html>\');f.close();"><frameset%20rows="21px,*"><frame%20name="urlF"%20src=
""%20noresize%20scrolling="no"></frame><frameset%20cols="*,*"><frame%20onload="if(window.frames.leftF.location.href!=undefined)window.
frames.urlF.document.getElementById(\'urlL\').value=window.frames.leftF.location.href;"%20name="leftF"%20src="'+urlL+
'"/><frame%20onload="if(window.frames.rightF.location.href!=undefined)window.frames.urlF.document.getElementById(\'urlR\').
value=window.frames.rightF.location.href;"%20name="rightF"%20src="'+urlR+'"/></frameset></frameset></body></html>');
void(close())}}else{void(null)};
Logged
zamalo
Newbie
*
Posts: 1


View Profile Email
« Reply #2 on: May 16, 2009, 03:44:10 PM »

Hello,

I was looking for a script to have a dual view for google chrome with individual address bar, and here its below, thank you for posting Smiley .. waitting for the reply


Quote from: "screasey"
Or, if you want individual address bars...

Code:
javascript:url=location.href;if((urlL=prompt('Left%20URL',url))&&(urlR=prompt('Right%20URL',urlL))){with(document){write(
'<html><body%20onload="q=String.fromCharCode(34);f=window.frames[\'urlF\'].document;f.open();f.write(\'<html><body%20style=
\\\'padding:0;margin:0\\\'><table%20width=\\\'100%\\\'%20cellspacing=0%20cellpadding=0><tr><td%20width=\\\'50%\\\'><input%20id=
urlL%20onkeydown=\\\'if(window.event.keyCode==13)parent.leftF.location.href=this.value\\\'%20style=\\\'width:100%\\\'%20type=
\\\'text\\\'%20value=\\\''+urlL+'\\\'/></td><td%20width=\\\'0\\\'><button%20onclick=\\\'parent.leftF.location.href=document.
getElementById(\'+q+\'urlL\'+q+\').value\\\'>Go</button></td><td%20width=\\\'50%\\\'><input%20id=urlR%20onkeydown=\\\'if(window.
event.keyCode==13)parent.rightF.location.href=this.value\\\'%20style=\\\'width:100%\\\'%20type=\\\'text\\\'%20value=\\\''+urlL+
'\\\'/></td><td%20width=\\\'0\\\'><button%20onclick=\\\'parent.rightF.location.href=document.getElementById(\'+q+\'urlR\'+q+\').
value\\\'>Go</button></td></tr></table></body></html>\');f.close();"><frameset%20rows="21px,*"><frame%20name="urlF"%20src=
""%20noresize%20scrolling="no"></frame><frameset%20cols="*,*"><frame%20onload="if(window.frames.leftF.location.href!=undefined)window.
frames.urlF.document.getElementById(\'urlL\').value=window.frames.leftF.location.href;"%20name="leftF"%20src="'+urlL+
'"/><frame%20onload="if(window.frames.rightF.location.href!=undefined)window.frames.urlF.document.getElementById(\'urlR\').
value=window.frames.rightF.location.href;"%20name="rightF"%20src="'+urlR+'"/></frameset></frameset></body></html>');
void(close())}}else{void(null)};
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC