Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Track things people type

Status
Not open for further replies.

edelwater

Programmer
Jun 29, 2000
203
EU
I was just wondering ... if i would put a piece of javascript inside a page which checks every key you press and dynamically (ajax) write this to my database, can i then see what you e.g. type in the google search box in firefox? (so without changing the window/tab) ?

Must try this sometime.

--
 
edelwater said:
can i then see what you e.g. type in the google search box in firefox?

You would be able to store every key press whilst your page has the focus. Firefox's google search box is not on your page, therefore your page would not receieve the keypresses. Were you to tab to another page, or switch to another window, your page would lose the focus and so would not receive the keypresses.

Fortunate for us, or phishing would be a lot easier.

Of course, the implications for framed pages poses an interesting question: would only the framed page receive the keypress? Or could it bubble up to the parent frameset?
I suspect it's only the framed page that would receive the keypresses, but I haven't put it to the test.

---
Marcus
better questions get better answers - faq581-3339
accessible web design - zioncore.com
 
I think you then run into the "do you allow cross side scripting stuff".

Do you think the following is possible:

if you install the google search bar for firefox and then enter a long array of words you will notice the right side of this page will flash, because the window will grow larger for a slight second because of all the words typed which appear to the right of the google bar (until the sentence is longer than your screen).

Would it be able to detect this inside your page? So a minimal fraction that the window moves?





--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top