Tag Archives: JavaScript
Prevent WordPress SPAM Comments & Registrations With JavaScript

The battle against SPAM continues, so I have another hurdle you can implement to help prevent bots from submitting comments and registering accounts. Although this tip is aimed at WordPress, the basic idea can be applied to any application. What we’re going to do is encase (or hide) the submit buttons on the comment form and account registration page in JavaScript. That way, bots (which don’t use JavaScript well) won’t be able to submit data [...]
Web Development Cheat Sheet Compilation

Cheat sheets are great reference guides for quick and direct information and they come in a plethora of topics. They make great desktop wallpapers and printouts, too. Here is a compilation of cheat sheets on various web development languages, Internet systems, and more. Anatomy Of A URL Google Advanced Search Shortcuts Wikipedia:Cheatsheet – Download .pdf HTML 5 Canvas Cheat Sheet – Download .pdf | .png Ultimate HTML5 Cheatsheat [Infographic] – Download .png HTML 5 Cheat [...]
Posted in: Web Development
Tagged: code, CSS, HTML, JavaScript, syntax, wallpaper, web, web development, WordPress
Permanently Disable Google Instant

Google Instant is a feature added to the Google search engine on September 8, 2010 which produces search results as you type your query. It is supposed to save you time because it anticipates your query. Here’s what the Google Instant page has to say: Our key technical insight was that people type slowly, but read quickly, typically taking 300 milliseconds between keystrokes, but only 30 milliseconds (a tenth of the time!) to glance at [...]
Posted in: Web Browsers
Tagged: Adblock Plus, add-on, Chrome, cookies, Firefox, Google, Instant, JavaScript, search, web
Loading Your Site With Google Adsense Quicker

You decided to add some Google Adsense to your website for a little ad revenue, but your web page loads much slower now. That’s because the browser is trying to call an external script (Google’s) and their Adsense servers seem to always run slow. Google wants you to put the Adsense script directly into the element it’s to be displayed. In our case, it’s: <div id="topAdvert"></div> There is a better way! Create a division element [...]
Posted in: Web Development
Tagged: Adsense, code, CSS, Google, HTML, JavaScript, load, quicker, speed, syntax, web, web development, WordPress
Showing HTML, JavaScript, And PHP Syntax On Your Blog

So, you want to show web codes on your WordPress blog (or any website) but the web browser always executes it with the rest of your HTML? The trick for showing code on your website is actually pretty simple. Say you want to show the following code: <p>Lorem ipsum</p> You can’t type the code as it looks because the web browser will render it as a paragraph tag. Instead, you need to change all less [...]
Posted in: Web Development
Tagged: code, CSS, HTML, JavaScript, Notepad++, PHP, syntax, text editor, web, web browser, WordPress
