Link to home
Start Free TrialLog in
Avatar of will_rein99
will_rein99

asked on

Macintosh Internet Explorer Frame Buster

All,
  Apparently the following code does not work on a Macintosh in Internet Explorer:
if (document.images){
      top.location.replace('[page]');
      }else{
      top.location.href = '[page]';
      }

  What's the appropriate correction to get this to work on a Mac?
Thank you,
--Will
ASKER CERTIFIED SOLUTION
Avatar of ziffgone
ziffgone
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of will_rein99
will_rein99

ASKER

The actual solution was as follows:

<script language="javascript">
if (document.images){
      top.location = ('[page]');
      }else{
      top.location.href = '[page]';
      }
</script>

Apparently the Mac version did not like the "replace" method.  Go figure.
You get the points Ziff for giving me the key clue in your code.  Thank you much!
--Will
No problem Will.

Regards...