relWindow - New window based on 'rel' attr

/ Published in: JavaScript
Save to your folder(s)

Based on the linked SitePoint article but with options to limit the container (eg body copy) and set the target. Use '_blank' for a new window for each link. Also adds a class (based on the rel value) for styling. Call the 'relWindow' on window load.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.