OTrap
Elite Member
- Jul 12, 2008
- 2,314
- 1,064
Based on the code, I assume you can see what I'm trying to do. However, I'm pretty new to Javascript, so any help is appreciated.
Thanks.
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<script language="JavaScript">
if ( top.location.href!= window.location.href ) {
<head>Page 1</head>
<bode>not in a frame</body>
} else {
<head>Page 2</head>
<bode>in a frame</body>
}
</script>
</html>
Thanks.