Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-19-2007, 06:23 PM #1
- Join Date
- Jul 2007
- Thanked 0 Times in 0 Posts
What are these? (Ele.lastEntered, ele.EnteredText )
ele = event.srcElement;
ele.enteredText = ele.enteredText.substring(0,ele.enteredText.length-1);
var t = curTime.getTime() - ele.lastEntered;
I wanted to know if there is a list of these items somewhere.
I can not find them in any list of properties, methods or events?
07-19-2007, 06:49 PM #2
- Join Date
- Jun 2002
- Thanked 251 Times in 247 Posts
That's probably custom attributes. You can create custom attributes in an element and access them.
Code:<form> <input type="text" name="txt" lastEntered="" enteredText="" onblur="this.lastEntered=this.enteredText; this.enteredText=this.value;" /> <input type="button" value="Show Text" onclick="alert('entered:' + this.form.txt.enteredText + '\nlast entered:' + this.form.txt.lastEntered)" /> </form>
Tower of Hanoi Android app (Ad-FREE!)
Tower of Hanoi Android app (FREE!)
Tower of Hanoi Leaderboard
Samegame Facebook App
Samegame Facebook App Leaderboard
vBulletin 5 Floating Bar Mod
vBulletin 5 Photo Slideshow Mod
vBulletin 5 Quote Selected Text Mod
vBulletin 5 Profile Preview Tooltip Mod