Dax Pandhi's nAESTHETIC Dax Pandhi's nAESTHETIC Dax Pandhi's nAESTHETIC Subscribe to this Blog's RSS feed Subscribe to my DeviantArt RSS feed

Popular art from my DeviantArt account:


  Saturday, August 05, 2006


Workaround for the CLICK TO ACTIVATE irritant

If you have a Flash control that needs to be "activated" - especially on a fully Flash site - you know how problematic and anti-productive it can be. Here's a workaround:

//work-around for IE "click to activate" object
var objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}

This code will "activate" all OBJECT tags in your page. Use with care. The irritant in IE may not fun, but the security concern is valid.









Copyright � 2005-2007 Dax Pandhi. All rights reserved.
designed by nukeation
Sign In