• 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

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

How to override header set in Apache config with more specific header in a virtual host

using random function but it's displaying duplicates

Check If array is null or not in php

Make Calculator - When Button clicked the No shows in Textbox.

codeigniter 4 running error first time with xampp

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

How to read laravel_session cookies saved in cookie memory of browser in client side?

Merge key and value of array index [duplicate]

500 Internal Server Error on Ajax request. Not sure the origin of the problem

How to send image,audio or video through the WhatsApp API - PHP

Require a class from another class - php

html-php form submission after validation through JavaScript [closed]

How in Laravel run JavaScript code stored in php variable?

how to prevent float variables displaying as scientific notation when printing [duplicate]

About Contact Privacy policy Terms and conditions