Кто-нибудь знает, как получить URL-адрес и заголовок текущей страницы с помощью Javascript без jQuery!?
<script type="text/javascript">
var title = document.getElementsByTagName('title')[0].innerHTML;
var url = document.location.href
socializ(encodeURIComponent('+href+'),encodeURIComponent('+title+'))
</script>
Просто не работает .. нужна помощь .. .