Site Navigation

May 8, 2009

Links Fixed

JQuery Logo

The links should be fixed now on blueskyworkshop.com. 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='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>
18:<script type='text/javascript'>
19:  function pageLoad(){
20:    $('a[href]').attr('target', '_top');
21:  }
22:
23:  $(document).ready(pageLoad);
24:</script>
Post a Comment

Favorite Links Feed