Open A New Window with Valid XHTML

This little HTML/JavaScript snippet shows an accessible way to open new browser windows that validates to XHTML standards. It would be better to use event handling however this is a simple of example of using JS inline. See related links for those kind of examples.


<a 
href="http://forums.devshed.com/html-programming-1/target-depreciated-503204.html" 
onclick="return !window.open(this.href,'Target_Deprecated',
'toolbar=0,location=0,directories=0,status=0,menubar=0,
scrollbars=0,resizable=0,width=600,height=488,left=380,top=120');" 
accesskey="c">Dev Shed Discussion</a>

Syndicate content