Web Analytics Made Easy -
StatCounter whats wrong with this? (window.scroll) - CodingForum

Announcement

Collapse
No announcement yet.

whats wrong with this? (window.scroll)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • whats wrong with this? (window.scroll)

    I am trying toget a page to move to a certain position once it has loaded, and it is made up of 2 frames. Can anyone see whats wrong with my code?

    Code:
    <HTML>
    <HEAD>
    <TITLE>Room</TITLE>
    <script language="JavaScript">
    
    function wait() {
    	setTimeout("scroll()",6000);
    }
    
    
    function scroll() {
    	window.scrollTo(100,100)
    }
    
    </script>
    </HEAD>
    
    <FRAMESET ROWS="800px,22px">
        
        <FRAME onLoad="Javascript:wait();" frameBorder=0 frameSpacing=0 marginHeight=0 marginWidth=0 name=content src="www.someoneelsespage.com/example.html">
        <FRAME SRC="http://www.mypage.com/example2.htm" FRAMEBORDER=0 NORESIZE SCROLLING=no>
    	
    </FRAMESET>
    
    </HTML>

  • #2
    For security reasons, a page has no access to a frame/iframe/new window that contains a page from another domain.
    Glenn
    vBulletin Mods That Rock!

    Comment

    Working...
    X