Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15754

Re: How jump inside page?

From "robertbaer@teranews.com" <robertbaer@localnet.com>
Newsgroups comp.lang.javascript
Subject Re: How jump inside page?
References <O9D1s.2871$wr2.2283@newsfe08.iad> <5047237c$0$6192$ba4acef3@reader.news.orange.fr>
Message-ID <NJ92s.11$vo3.7@newsfe06.iad> (permalink)
Organization TeraNews.com
Date 2012-09-06 15:47 -0700

Show all headers | View raw


SAM wrote:
> Le 05/09/12 09:27, robertbaer@teranews.com a écrit :
>> ** sample: how can i make it work?
>
> at time where you try to replace/reload the page, the link 'skipp' isn't
> yet knonw
>
>
> <script>
>
> onload = function() { window.location.replace('#skipp'); }
> /*
> or :
> onload = function() { self.location = '#skipp'; }
> */
>
> </script>
>
> <form id="contact-form" style="margin-bottom:2000px">
>
>
   No matter what i do, it does not work; the onload does not "initiate" 
the "label" location; all i get is a jump to top of page.
   Verified this by starting from one page (r.html) to go the other 
(s.html):
<script>
onload = function() { window.location.replace('s.html#skipp'); }
</script>

   So..how can i get it to work?

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How jump inside page? "robertbaer@teranews.com" <robertbaer@localnet.com> - 2012-09-05 00:27 -0700
  Re: How jump inside page? SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-09-05 12:03 +0200
    Re: How jump inside page? "robertbaer@teranews.com" <robertbaer@localnet.com> - 2012-09-05 11:12 -0700
    Re: How jump inside page? "robertbaer@teranews.com" <robertbaer@localnet.com> - 2012-09-06 15:47 -0700
      Re: How jump inside page? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-09-07 06:55 +0000

csiph-web