Сообщение от crabkilla
|
не могу никак с этим разобраться
|
Хоть бы показал как разбирался...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251' />
<!--
<script src='https://code.jquery.com/jquery-latest.js'></script>
<script src="https://code.angularjs.org/1.3.9/angular.min.js"></script>
<script src="https://code.angularjs.org/1.3.9/angular-route.js"></script>
-->
<style type='text/css'>
</style>
<script type='text/javascript'>
</script>
</head>
<body>
<p style="color: navy"> There's only picture here...
<br>
<img src="http://ipic.su/img/img7/fs/burger.1537205489.jpg" width="100px" height="100px" />
</p>
<br>
<p id = "pic"> This one cannot be displayed. We have to delete it.
<img alt="bad picture">
</p>
<script type='text/javascript'>
var o=document.getElementsByTagName('img')[1];
o.parentNode.removeChild(o);
</script>
</body>
</html>