Custom Background Color for 'Open in New Window'
I'm using this script in the head of my doc:
Code:
<script language="javascript">
/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
var win = null;
function NewWindow(mypage,myname,w,h,scroll) {
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings=
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable',
win = window.open(mypage,myname,settings)
}
</script>
and this in the body:
Code:
<a href="brvig2015.jpg" onclick="NewWindow(this.href,'name','700','590','yes');return false"><img src="brvig2015t.jpg" width="122" height="98" border="0" alt="variation one" /></a>
Can I insert a code to change the background color in the new window?
Any help at all is appreciated!