I have a developed this simple javascript to allow user to key in only numerics and dot(for decimals).
function verify(e)
{
var zero=48;
var nine=57;
var dot=46;
if((e.keyCode==dot)||(e.keyCode>=zero && e.keyCode<=nine)){
return true;
}
return false;
}
If you are in the bottom of the html page and if you want to go to the top of the page, You can use the following java script.
window.scrollBy(-document.body.clientWidth,-document.body.clientHeight);
Otherwise if you wanna goto top... yes you are right, remove the minuses.
If you want to scroll inside any dom elements, you can use this javascript method to determine the height or width of that element.
document.documentElement.clientHeight/Width
Flickr Photostream
குருதியில் பூக்கள் நனையும் போது உறவுகள் உறங்கலாமோ?
temp
Contributors
- Kishore
- Everybody struggles and overcomes them. Some i come across and the way i did it.