/    Sign up×
Community /Pin to ProfileBookmark

editing frame invoking onload

I want to edit the frame which invoked the onload event.I tried accessing it using

[FONT=Arial Black]e.srcElement.document[/FONT]
but the document object pointed to something else,so I wrote a function which tries to get the frame object by scanning thru the frames array in every level and trying to get frames[index] comparing the window.frames[i].frames[j]…frames[index].id == e.srcElement.id

it worked however now i have a frame without ny id.Somebody help.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @mailarchis 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...