没用过,我做的一个类似的东西是
document.getElementById('testflash').innerHTML = str;
testflash为某个控件的id号,用来放置str的
我的设置是<div id="testflash"></div>放出来给你参考看看