説明なし

news.html 605B

1234567891011121314151617181920
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Document</title>
  8. </head>
  9. <body>
  10. </body>
  11. </html>
  12. <script>
  13. function setContent (con){
  14. var content = con.replace(/(< img|<img).*?>/g, "");
  15. document.body.innerHTML = content;
  16. document.title = document.getElementsByTagName('h1')[0].innerText;
  17. }
  18. </script>