About The Author
Michael Flynn is a Web Developer at Terralever, an interactive marketing agency based in Tempe, AZ. He specializes in web technologies that include C# .NET, SQL, XML, AJAX, jQuery, Flash, and also skills in Photoshop and Illustrator. He was been involved in web development since 1998, and earned a Bachelors and Masters degree in Computer Engineering and Computer Science from the Univerisity of Louisville and holds an MSCT certificate in Web Applications.
Calendar
<<  March 2010  >>
SMTWTFS
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910

Open Link From IFrame Into New Window with JQuery

I recently had to open links in an IFrame in a new window.  The problem before was files ilke PDFs and images were opening up in the IFrame with no scrolling.  I wanted a clean, quick solution with JQuery so below is what I came up with. 

$(document).ready(function() {
        $('a').click(function() {
        window.open($(this).attr('href'), 'File', 'fullscreen=yes', 'resizable,scrollbars'); return false;
    });
});

Posted on 9/13/2008 8:03:00 PM by cblaze22

Permalink | Comments (1) | Post RSSRSS comment feed |

Categories: Development Tips | jQuery | Tips

Tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Comments

November 25. 2008 14:46

Web Development Community

Trackback from Web Development Community

My DotNet World - Open Link From IFrame Into New Window with JQuery

Web Development Community

Add A Comment




  Country flag