1. How can we get the exact keystroke to match CTRL+F?
The best method I found out to work in all important browsers is not to get CTRL+F keystroke in the same time, First I will check if CTRL key was pressed, because this key acts different in different browsers.
var ctrl_key;
ctrl_key = false;
function searchKeyPress(e){
if(window.event){ // IE
if(window.event.keyCode==17){
ctrl_key [...]
Make your own CTRL+F search window using JS and Popups
JS Input element
1. HTML input tag.
There are 10 types on inputs used in HTML.
<input type=”button”>
<input type=”checkbox”>
<input type=”file”>
<input type=”hidden”>
<input type=”image”>
<input type=”password”>
<input type=”radio”>
<input type=”reset”>
<input type=”submit”>
<input type=”text”>
2. JS Input text element.
The tag input type=”text” is the most used in HTML.
Events: onafterupdate, onbeforeupdate, onblur, onchange, onclick, ondblclick, onerrorupdate, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onselect
Methods: [...]
JS onclick event
1. What items are clickable and generate the JS onclick event?
HTML language is composed by tags. Each tag represents an object. Some of objects are visible by aye others are hidden, for example <input type=”hidden”> is a hidden object. We can’t click on hidden objects/tags. So we can use onclick javascript event on visible tags.
This [...]
JS SRC propriety
1. What is SRC propriety?
SRC is a propriety of some different tags that usually points to a file. For example IMG tag uses it to select the image.
For example:
<img src=”images/photo.jpg”>
2. Let’s use JavaScript to interact with SRC propriety.
First we need a way to identity the image that we want to change the image. We will [...]
JS validation form script
How to use JS (javascript) to validate a form?
1. What is a web form?
A web form (or HTML form) is an area designated for user/server interaction.
Let’s say you want to log in, or to enter a comment to a blog, or to select the area code you are from. You will need an area where [...]