<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Tree Tree"
</head>
<body>
<img src="http://www.sololearn.com/images/tree.jpg"
height="n_width" width="n_height" alt="" />
name: <input type="string" id="name"/>
width: <input type="number" id="width"/>
height: <input type="number" id="height"/>
<button onclick="generateTable()">Update the image</button>
<table id="table"></table>
<title>name:</title>
<script>
function generateTable() {
const n_name = document.getElementById("name").value;
if(n_name=="tree.png"){
const n_width = document.getElementById("width").value;
const n_height = document.getElementById("height").value;
document.querySelector("img").width = document.getElementById("width").value
}
}
</script>
</body>
kak tut eshe pen.jpg dobavit? i ego imya chtob byl po drugomu
Ты уже по всем пабликам эту ерунду запостил
Обсуждают сегодня