Profile
Achievement
chippper's Recent SnippetsTagged javascript
- All /
« Prev 1 Next »
This assumes HTML that looks like this:
<pre><code>
<div id="containing_div">
<div id="div_1" style="background-color:red" class="visible_div">
<p>Test Content 1</p&...
2
644
posted 15 years ago by chippper
Rather than using target="_blank", which is deprecated by the W3C in XHTML, you should use rel="external" for links that you want to pop out in a new window. This is the javascript that makes it happen.
0
982
posted 15 years ago by chippper