/    Sign up×
Community /Pin to ProfileBookmark

hooking to browser instance ‘events’ through javascript

We can use attachevent to listen to events on a document.
But we wish to open a new browser instance(window.open) and hook into the events of that particular browser instance-how do we do that?
We want to provide a recording functionality which allows us to record all user actions/navigations on a browser instance.
Is this possible through javascript?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@mrhooDec 12.2006 — With some work and a lot of overhead you can. You can create an object that shadows all of the attachEvent declarations. Every eventHandler has to log its target or srcElement and an array of event attributes. Its useful for testing and debugging, but

in IE especially you will have closure issues. Keep the object trimmed to the last x number of events, and be careful of multiple resize or mousedown calls.
×

Success!

Help @ranadhir spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...