Skip to content

Instantly share code, notes, and snippets.

@hidsh
Created February 13, 2022 03:12
Show Gist options
  • Save hidsh/fd6821d069463ca920a5243a38dce2b0 to your computer and use it in GitHub Desktop.
Save hidsh/fd6821d069463ca920a5243a38dce2b0 to your computer and use it in GitHub Desktop.
innerHTML で表示変更した時にソース表示するには?
// ↓これをChrome のコンソールに入力して、結果をコピー
console.log(document.getElementsByTagName('html')[0].innerHTML);
// 元ネタ: ↓ここのNo.3の回答
// https://oshiete.goo.ne.jp/qa/6191173.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment