0

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;

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by stbuchok
0
<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?

Edited by pyTony: fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.