Site Navigation

May 8, 2009

Links Fixed

JQuery Logo

The links should be fixed now on The following code does the trick. Essentially, it just adds a target attribute with a value of _top to all link elements. This moves the linked page to the top most frame. Thus, any container frames are removed.

17:<script src='' type='text/javascript'/>
18:<script type='text/javascript'>
19:  function pageLoad(){
20:    $('a[href]').attr('target', '_top');
21:  }
23:  $(document).ready(pageLoad);
Post a Comment

Favorite Links Feed