I have this
window.top.onscroll = function(){moveScroll();
}

It works perfect in ie, but in firefox I get permission denied to get property onscroll.
why? and whats the solution?

on top of my page i have done this though var url = document.URL;
url = url.substring(7,url.length);
url = url.substring(0,url.indexOf(":"));
if(isMoz) document.domain = url;

Recommended Answers

All 2 Replies

<html>
<head>
<script>
function blip()
{
    var isMoz = !window.attachEvent;
    if(isMoz)
            document.domain = '192.168.101.102';
}</script>
</head>
<body>
<div style="height:100px">
dafsdfdsf
</div>
<iframe onload="blip()" id="lll" src="main.jsp">
</iframe>
</body>
</html>

if i do that it doesnt work...

if i do this it works

<html>
<head>
<script>
    var isMoz = !window.attachEvent;
    if(isMoz)
            document.domain = '192.168.101.102';
</script>
</head>
<body>
<div style="height:100px">
dafsdfdsf
</div>
<iframe  id="lll" src="main.jsp">
</iframe>
</body>
</html>

how can I do it in onloan function?

Member Avatar for stbuchok

pretty sure you don't need window.top, try just window.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.