• 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

phpunit - testing is painfully slow

Log a user out of a website when they put their computer to sleep

Send Outlook 2010 email using PHP

How can I get new CSRF token in LARAVEL by using ajax

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

PHPMetrics option --excluded-dirs="myfolder" : myfolder dir is not excluded within docker

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

Add customer email and phone in "Order" column to admin orders list on Woocommerce

Laravel Database Strict Mode

laravel controller function parameters

MOODLE: What does it mean to aggregate h5p assets?

PHP SoapClient: set a namespace without prefix

Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model

Change the alert text on add to cart action without selected variation in Woocommerce

PHP and WebView - Cookie doesn't are the same

About Contact Privacy policy Terms and conditions