Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1030864 // hjs_scrollDownOnPageLoad - pure JS

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2916L/17K).

1  
sS hjs_scrollDownOnPageLoad() {
2  
  ret hjs([[
3  
    document.addEventListener("DOMContentLoaded", function() {
4  
      window.scrollTo(0, 100000);
5  
    });
6  
  ]]);
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030864
Snippet name: hjs_scrollDownOnPageLoad - pure JS
Eternal ID of this version: #1030864/2
Text MD5: 5c994c453ced1ce98f0be8a5f574896f
Transpilation MD5: 46710092661b73a7fc4268b476939a51
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-04 18:05:28
Source code size: 164 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 218 / 277
Version history: 1 change(s)
Referenced in: [show references]