JavaScript Submit button hack

submit-button-javascript-hack

On slow server or double clicks often we have double post and double comments on blogs forum, forms, uploading etc. Here is a fast JavaScript hack that can disable the Submit button after the first click. So after the users click submit, the button will be inactive for other incidental clicks. Just with adding this following line to your form inside the "input submit" tag:

onclick="myform.submit();this.disabled=true Continue reading

Hack to Firefox search tab

fireofox-search-hack

When we search often we use the search box on the top of Firefox, and very often we open a new tab. Here is the hack how to make this tab in an automatic opening when we search and we keep the current page. Type about:config. Scroll down or find the string browser.search.openintab and change the value from false to true, like in the screen shot.

Continue reading

CSS Hack max width like image resize

css-hack-image-align-blog-post

Recently I was fixing some CSS image alignments and the width for images. And the problem was with the big images that come out of content?! At this point comes out max-width. The max-width CSS property is a great property to use when you don’t want an element to get larger than a certain size. It does exactly what it says it does. Using it with images can be very handy. Here’s the syntax.

selector {max-width:value;}
Continue reading