Forum Moderators: open

Message Too Old, No Replies

help me to correct it, please!

         

liwei

8:17 am on Jun 9, 2003 (gmt 0)

10+ Year Member



<script language="JavaScript">

function scrollup() {
var H = Document.Frames(0).Document.All.H;
if (H.value == "1")
{
H.value = "0";
scroll(0,0);
}
}
</script>

H is from an iframe.

The problem is :

Document undefined

RonPK

9:56 am on Jun 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try lower case for document, frames, all:

var H = document.frames(0).document.all.H;

liwei

3:34 pm on Jun 9, 2003 (gmt 0)

10+ Year Member



Thank you RonPK!
It's working well with lower case.
Finally, the problem was solved.

gph

4:45 pm on Jun 9, 2003 (gmt 0)

10+ Year Member



Hi liwei, glad to see you have this working.

How did you get it to work?