html - JavaScript document.write not appearing in page source -


i have used document.write('test') in html page.

everything working intended curious know why output 'test' appears in browser not appear in "view page source".

so output of document.write() stored in browser memory?

yes.

when ask see source code, browser shows source code. doesn't show serialisation of current state of dom (which dom inspector for).


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -