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

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -

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