View source must be done differently for Mozilla. Here is a mapping between the two methods. IE method to switch to source view: iHTML = getDocument().body.innerHTML; getDocument().body.innerText = iHTML; Mozilla method to switch to source view: var html = document.createTextNode(getDocument().body.innerHTML); getDocument().body.innerHTML = ""; getDocument().body.appendChild(html); IE method to sw