Javaskript question - can this be done?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cluck
    Confirmed User
    • Dec 2002
    • 5248

    #1

    Javaskript question - can this be done?

    I want to have a named anchor on my page and have the browser automatically scroll down to it when the page loads. Anyone who knows how gets a free copy of the TGP form filler I'm writing

    All this to avoid buying Advanced Submitter. Blah, I hate using other peoples software.
    icq 279990726
    www.mcdonalds.com <- great money making opportunity
  • cluck
    Confirmed User
    • Dec 2002
    • 5248

    #2
    There's gotta be a way...
    icq 279990726
    www.mcdonalds.com <- great money making opportunity

    Comment

    • juicylinks
      So Fucking Banned
      • Apr 2001
      • 122992

      #3
      cluck its simple that even a sexy guido like myself knows.


      http://www.cluckhasahugecock.com/#anchorgoeshere


      When that linked iis clicked it will go to the link

      Comment

      • cluck
        Confirmed User
        • Dec 2002
        • 5248

        #4
        Originally posted by juicylinks
        cluck its simple that even a sexy guido like myself knows.


        http://www.cluckhasahugecock.com/#anchorgoeshere


        When that linked iis clicked it will go to the link
        Juicy yeah I know that's how you do it, but I'm trying to do it from within a program that uses the SHELLDOC dll. I changed the document.innerHTML property of the browser to fill in submit forms(like advanced submitter) and I made it insert an anchor at the start of the form. The problem is getting the program to automatically scroll down to that anchor. I can't just navigate to it because the HTML being displayed isn't truly the webpage, it's my modified HTML with the form data. I figure if I can get it to execute hahahahahahahahahaha from inside the binary it'd be easy but alas I have had no success yet.
        icq 279990726
        www.mcdonalds.com <- great money making opportunity

        Comment

        • fletcher
          Confirmed User
          • Jan 2003
          • 698

          #5
          Haven't tested it, but try:

          window.location.href += "#anchor";

          Edit: Yep, tested it...it works OK.
          Last edited by fletcher; 04-10-2003, 08:24 PM.
          &nbsp;
          [email protected]
          ICQ: 6411138

          Comment

          Working...