Solved

Macintosh Internet Explorer Frame Buster

Posted on 2004-09-01
3
209 Views
Last Modified: 2006-11-17
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
0
Comment
Question by:will_rein99
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
ziffgone earned 500 total points
ID: 11958903
Try this one:

<script language="Javascript">
<!--
if (top.location != self.location)
  {
    top.location = self.location.href
  }
//-->
</script>

Hope that helps, but I'm not too familiar with Mac IE.

Regards...
0
 

Author Comment

by:will_rein99
ID: 11960008
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
0
 
LVL 14

Expert Comment

by:ziffgone
ID: 11963342
No problem Will.

Regards...
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question