Solved

Macintosh Internet Explorer Frame Buster

Posted on 2004-09-01
3
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…
Suggested Courses

626 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