<html> <head> <script> function boom() { document.getElementById("s").style.overflow = "auto"; } </script> </head> <body onload="boom();"> <div id="fl"> <b><span id="s">Foo</a></b> </div> </body> </html>