I’m trying to work out how this can be achieved using jQuery, I have page 1 which has 2 links namely link 1 and link 2, what I want to achieve is when I click link 1 a new browser window is opened displaying the content for link 1 and when I click link 2 the same window is displayed but with the content for link 2.
Is this a matter of creating a page and hiding both sets of content then displaying the content when the appropriate link is clicked?
Has anyone any tutorials that are similar to this?
Give this a shot… I’m using the rel attribute of the link to point to the content, and a class on these links, which allows the click handler to work for any number of links/windows.
Working JSFiddle: http://jsfiddle.net/gfosco/txMKb/