<input class="some-class" type="hidden" name="url">
// jQuery
$(function ($) {
$('.some-class').val(window.location.href);
});
// js
document.addEventListener("DOMContentLoaded", () => {
let urlInput = document.querySelector('.some-class');
urlInput.value = window.location.href;
});
<div class="videoWrapper">;
<iframe width="560" height="315" src="https://www.youtube.com/embed/ELYrAPHxEuI" frameborder="0" allowfullscreen></iframe>
</div>
.videoWrapper{
position:relative;
padding-bottom:56.25%;
padding-top:30px;
height:0;
overflow:hidden;
}
.videoWrapper iframe,.videoWrapper object, .videoWrapper embed{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}