Category: javascript

Debugg Your Javascript by using FireBug Plugin for Mozilla Firefox

Debugging Javascript was very hard and time consuming. Fire bug is very good tool for monitoring html, css javascript and Ajax request. Also we can use firebug as a reengineering tool for online applications

Tagged with: ,


PHP Redirect <?php header(“Location:”); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?> Javascript Redirect <script type=”text/javascript”> <!– window.location = “” //–> </script>

Tagged with: , ,

Toggle visibility between none and inline

function toggle_it(itemID){ // Toggle visibility between none and inline if ((document.getElementById(itemID).style.display == ‘none’)) { document.getElementById(itemID).style.display = ‘inline’; } else { document.getElementById(itemID).style.display = ‘none’; } }

Tagged with: , ,

JavaScript Frame work

A powerful javascript frame work. ProtoType.Js Prototype is a JavaScript Framework that aims to ease development of dynamic web applications. Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase

Tagged with: , , ,

Light Weighted javascript Libraries

This website provides Ultra lightweight JavaScript libraries . That helps JavaScript developers main OpenSource pojects are: GoogieSpell is a spell checker that you can use in your own web-application. GreyBox can be used to display websites, images and other


<a href=”#” onclick=”javascript:window.location.reload();”><strong>refresh</strong></a>

Tagged with: ,

Javascript Back button

<a href=”#” onclick=”history.go(-1)”>back</a>

Input Field accepting only numbers using javascript

<input name=”demo” type=”text” id=”demo” onkeypress=”var unicode=event.keyCode? event.keyCode : event.charCode;if ((unicode < 32 || unicode > 33)&&(unicode < 45 || unicode > 57))  return false; return true;”> This code compatible to all browsers !