We have to refresh browser's content after each change in the dialog. Webkit and IE work smoothly with refresh(), while for Mozilla it is better to call every time setUrl() again. And, of course, the very first time it should be setUrl() for any browser. The code checks if url has already been assigned.