Category: JAVA/jQuery

Make your server folder password protected.

If you want to make your site a password protected. This can be mainly used for under development sites. You want only limited users (admin) should assess the site till it’s on development phase. You…

Add/Remove class on hover by JS.

Now a day’s almost all browsers support :hover property by CSS. But sometimes we want JS to add and remove class or any other css properties on hover so that we can do easily.  …

Empty An Array

Try the fastest way to empty an array and other ways are also in the coding. But that codes are used to create an array. Through these codes you can reuse an array. var myArray…

“Go Back” With Button.

In the browsers already have “back” buttons. Input button with inline JavaScript <input type=”button” value=”Go Back From Whence You Came!” onclick=”history.back(-1)” /> This is completely obtrusive, but you could fix that by only adding this button through…

Make your whole Divs clickable.

Want to make your whole div clickable? There is no need to add div within anchor tag (i.e. <a href=”#”>..</a>). By below code you can make your whole div clickable. By using JavaScript: <div onclick=”location.href=’Enter-URL-Here’;”…

Building an Application in Java.

We will start by building an application that adds two numbers. Whenever you build any java application, there is asset template for design that you automatically follow. Import javax.swing.joptionpane; The compiler imports the classes you…

What is XML?

The name XML comes from the full name of the language, Extensible Markup Language. Although markup is in the name of the language, do not think XML as you do HTML because, aside from the…