• 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

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

Performance of foreach, array_map with lambda and array_map with static function

PHP: How to quickly split a key=value file into associative array

PHP file_get_contents function

Attempted to call an undefined method named "get" of class "MailController"

loop through an anchor id

Edit XML in HTML form and submit to self

Symfony run hint kernel.secret parameter not found

Handle error for duplicate entries - PHP/MySQL

Add 2 Webcam in one page with WebcamJS

php mysql + create a friend request system

How to make a array inside array?

Two buttons one form

Laravel 8: Array to string conversion while calling route:list

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

About Contact Privacy policy Terms and conditions