facebook@jsbanktwitter@js_bankgoogle+javascriptbanknewsletterrss@jsbank
Guest, register






ieoBIN.com - The Best IEO List to Discover, Invest in 2019

Opening New Windows When using strict doctypes the target attribute is not allowed for opening new windows. This JavaScript will accomplish that task easily and unobtrusively. The script uses the class name "non-html" so you will need to add that to the links you want to open in a new window, e.g., <a href="yourDocument.html" class="non-html">A sample file</a>

This JavaScript will not open a new window if a modifier key (ctrl/shift/etc.) is pressed while the JavaScript link is clicked. It also checks if the new window was successfully opened. If it was not, it returns true to allow the browser to open the JavaScript link in the original window.


JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web