GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aofdev/tips-js: JavaScript HTML JQuery tips

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 

Repository files navigation

Tips-Js How To 💡

Disable right click on my web page, Disable view source, Disable developer tools

<script language="javascript">
    window.oncontextmenu = function () { return false; };
    document.onkeydown = function(e){ if(event.keyCode == 123) {return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){return false;}if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){return false;}if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){return false;}}
</script>

Automatically Refresh DOM HTML

<div id="re"></div>

<script type="text/javascript">
    setInterval(function () {
        $('#re').load(document.URL + ' #re');                  //Refresh 1 second
    }, 1000)
</script>

Get Variable Javascript to Form HTML

<form action="">
<input type="hidden" id="getNum" name="dataNum">
<input type="hidden" id="getString" name="dataString">
</form>

<script type="text/javascript">
var num = 100;
var str = 'hello';
     $(document).ready(function() {
          document.getElementById("getNum").value = num;
          document.getElementById("getString").value = str;
     });
</script>

Get Variable Form Select Html with JQuery

<select id="inputSelect" name="carlist">
  <option value="1">Volvo</option>
  <option value="2">Saab</option>
  <option value="3">Opel</option>
  <option value="4">Audi</option>
</select>

<script type="text/javascript">
     $(document).ready(function() {
     var getDataSelect = $('#inputSelect').find(":selected").val();
     });
</script>

About

💡 JavaScript HTML JQuery tips

Topics

formhtmljavascriptjavascript-tipsjqueryjstips

Resources

Readme
Activity

Stars

2 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.