Hi all, long time no see. I was wondering if someone could help me with this piece of js. When it detects the resolution, i dont want it to open a new window, simple redirect in the same window. Hope someone can help
----------------------------
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!--------- Res Sniffer ------------>
<script language="JavaScript1.2">
function ScreenGoToURL(Big,Medium) {
var screen_height = screen.height;
var screen_width = screen.width;
if (screen_height >= 768) {
screen_width = 1024;
screen_height = 768;
window.open(Big);
} else {
screen_width = 800;
screen_height = 600;
window.open(Medium);
}
}
</script>
<!-- End Res Sniffer -->
</head>
<BODY onLoad="ScreenGoToURL('default.asp','default1.asp')">
</body>
</html>
-----------
thanks,
Regards - Spoon
Begineer? Need help installing the forums? - www.aslickpage.com/snitz_help.html
www.ASlickPage.com - Private Messaging