On 10-07-24 04:19 AM, Adam Richardson wrote:
Code that resembled the below is how I used to open new windows before I started using jQuery Note, this completely avoids use of the target attribute. function wireNewWindows(){ if(document.getElementsByTagName){ var anchors = document.getElementsByTagName("a"); for(var i = 0; i< anchors.length; i++){ var node = anchors[i]; if(node.getAttribute('rel') == 'external' || node.getAttribute('rel') == 'nofollow'){ node.onclick = function(){ var url = this.href; window.open( url, 'newWin','width=700,height=500,Menubar=yes,Toolbar=no,Location=no' ); return false; } } } } }
I try to avoid window.open() due to the proliferation of popup blocking. Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php