add onchange action

This commit is contained in:
Alexander Popov 2019-05-04 02:28:54 +03:00
parent 770e89c6a1
commit 1b4381cfa1

View File

@ -6,7 +6,7 @@
_/ _//
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>YTCget</title>
<link rel="stylesheet" type="text/css" href="styles.css">
@ -21,7 +21,7 @@
<div class="header">
<div class="wrap">
<form action="JavaScript:getCover()">
<input type="text" id="videoUrl" placeholder="YouTube video url"><!--
<input type="text" id="videoUrl" placeholder="YouTube video url" onchange="getCover()"><!--
--><button type="submit">Search</button>
</form>
</div>