Skip to content

Commit a1ebb12

Browse files
authored
Update README.md
1 parent 6ac4f74 commit a1ebb12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77

88
## Disable right click on my web page, Disable view source, Disable developer tools
9-
``` bash
9+
``` javascript
1010
<script language="javascript">
1111
window.oncontextmenu = function () { return false; };
1212
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;}}
1313
</script>
1414
```
1515

1616
## Automatically Refresh DOM HTML
17-
``` bash
17+
``` javascript
1818
<div id="re"></div>
1919

2020
<script type="text/javascript">
@@ -24,7 +24,7 @@
2424
</script>
2525
```
2626
## Get Variable Javascript to Form HTML
27-
``` bash
27+
``` javascript
2828
<form action="">
2929
<input type="hidden" id="getNum" name="dataNum">
3030
<input type="hidden" id="getString" name="dataString">
@@ -41,7 +41,7 @@ var str = 'hello';
4141
```
4242

4343
## Get Variable Form Select Html with JQuery
44-
``` bash
44+
``` javascript
4545
<select id="inputSelect" name="carlist">
4646
<option value="1">Volvo</option>
4747
<option value="2">Saab</option>

0 commit comments

Comments
 (0)