I tried with a method that was suppose to work.
<html>
<head>
<script type="text/javascript">
alert(document.getElementById("gornji").src);
</script>
</head>
<body>
<iframe id="gornji" src="http://www.w3schools.com/js/default.asp" style="width:100%; height:30%; position:absolute; top:0px; border-style:none"></iframe>
</body>
</html>
What is wrong here? I am open to all answers.