/    Sign up×
Community /Pin to ProfileBookmark

How to insert alert window in the http body

Greetings,

I have an application were I need to intercept a file download, detect a virus, and alert the user that the downloaded file has a virus. I have to add this as I monitor the page that the user is dowloading the file from. I am trying to figure out if it is possible to insert the alert as if it were part of the page the user is viewing so that the alert window shows up after the download.

Is this possible?

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayOct 25.2006 — <i>
</i>....
document.getElementById("alrtMsg").innerHTML="&lt;h1&gt;Virus Detected&lt;/h1&gt;";
....
&lt;div id="alrtMsg"&gt;&lt;/div&gt;
...
×

Success!

Help @willieh811 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.24,
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,
)...