this is the code i have. everything functions exactly as i would like it to excep that is pops up in a new window. Can anyone tell me what i need to change to have it just repopulate the same window and not pop-up?
<head>
<script language=”JavaScript1.2″>
function redirectPage(Big,Medium) {
var screen_height = screen.height;
var screen_width = screen.width;
var buffer = (document.all || document.layers ||documentGetElementByID) ? 30 : 48;
if (screen_height >= 768) {
screen_width = 1024;
screen_height = 768;
var window_width = 1024-12;
var window_height = 768-buffer;
var window_top = 0;
var window_left = 0;
window.open(Big,”,’target=self,resizable=no,status=yes,width=’ + window_width + ‘,height=’ + window_height + ‘,top=’ + window_top + ‘,left=’ + window_left + ”);
} else {
screen_width = 800;
screen_height = 600;
var window_width = 800-12;
var window_height = 600-buffer;
var window_top = 0;
var window_left = 0;
window.open(Medium,”,’target=self,resizable=no,status=yes,width=’ + window_width + ‘,height=’ + window_height + ‘,top=’ + window_top + ‘,left=’ + window_left + ”);
}
}
</script>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
<title>Untitled Document</title>
<style type=”text/css”>
<!–
body {
background-color: #0033FF;
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
color: #FFFFFF;
font-size: 50px;
}
–>
</style></head>
<body onLoad=”redirectPage(‘1024×768.html’,’800×600.html’)”>
<span class=”style1″>DAY</span>
</body>
</html>