Google Chrome Split Screen
(1/1)
TYPELiFE:
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!
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)};
zamalo:
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 :) .. 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)};
Navigation
[0] Message Index