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 215 Times in 212 Posts
That's probably custom attributes. You can create custom attributes in an element and access them.
<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>Glenn
Tower of Hanoi Android app (Ad-FREE!)
Tower of Hanoi Android app (FREE!)
Tower of Hanoi Leaderboard
vBulletin 5 Floating Bar extension
vBulletin 5 Slideshow extension
vBulletin 5 Quote Selected Text extension
vBulletin 5 Profile Preview Tooltip extension