javascript

I will definitely forget the syntax of jQuery selectors if I do not write jQuery code for some days. So it is better to list them here as a memo. […]

To get the text value of element, you can: use .text() <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <script src=”jquery.min.js”></script> </head> <body> <div>aa<b>bb</b></div> <div>cc</div> <script> alert($(“div”).text()); </script> </body> </html> This […]

prototype and __proto__

Every object in javascript has a __proto__ property. The value of __proto__ is the prototype property of its construction function, or null if the object is not constructed by a […]

Javascript source code is clear text, which can be seen easily by right-clicking the web page and clicking the “view source code” menu item. To protect your javascript source code […]

You must have seen url redirect. You click an html redirect link. The link does not take you to the page it points to, but redirects the url to another […]