• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Best way to scrolldown onpageload

javascriptphpjqueryasp.netjquery-events


PHP Snippet 1:

    $(document).ready(function() {
        window.scrollTo(0, 100);
    }

PHP Snippet 2:

function Scrolldown() {
 window.scroll(0,100); 
}

window.onload = Scrolldown;

PHP Snippet 3:

<body onLoad="Scrolldown()">

PHP Snippet 4:

function Scrolldown(){
window.scroll(0,100); 
}

Related Snippets

Call authenticate manually in router middleware

How to Install Composer Require doctrine/dbal

Laravel Jetsream Profile page not loading on fresh install

What is the function of the (new Date()).getTime() in PHP?

how to youtube api data to print in toolset metabox using a button click before save-post

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Can't exclude directories from .htaccess mobile redirect?

Insert And Retrieve Data in MySQL with $.post Noob Question

What is the difference between client-side and server-side programming?

Warning: sqlite_query() expects parameter 1 to be resource, string given

WHM Enabling mod_rewrite

Star and Half Star Rating in Laravel

array_map triple dimensional array [duplicate]

protect images from being copied

OAuth2 Token PHP

About Contact Privacy policy Terms and conditions