Sign in
Log inSign up

Javascript Events and function problem

Christian Bayer's photo
Christian Bayer
·Feb 3, 2020

I made a JavaScript, that Displays a Image when oncontextmenu and if Domain in a Frame and (Maybe) the browser is httrack. The script is in my Hosting Provider, and the Images are at my other php profider with a stat. I have all and all tried but not minimaly the alert works. I think it is a function Problem and the reload is not functionable, but the oncontextmenu works mostly.

Here is the script:

// Right click
window.oncontextmenu = function() {
document.getElementById("fze").style.display = "inline";
document.getElementById("fze").src = "bayerchristian.de/phppushoverm/1/counter/f…";
document.getElementById("iframec").src = "bayerchristian.de/phppushoverm/1/clountclk…";}
// Frame Breaker maker
window.onload = function() {
alert("Frame break");
var url = window.top.location.href;
if (url.indexOf("inconsequential") != -1) {
document.getElementById("fze").style.display  = "inline";
document.getElementById("fze").src = "bayerchristian.de/phppushoverm/1/counter/f…";
} else if {document.getElementById("fze").src = "bayerchristian.de/phppushoverm/1/counter/f…";}
// HTTrack maker
alert("HTTrack visit");
var BrowserName = navigator.userAgent;
if (navigator.userAgent.indexOf("HTTrack") != -1 ) {
document.getElementById("fze").style.display  = "inline";
document.getElementById("fze").src = "bayerchristian.de/phppushoverm/1/counter/f…";
} else if {document.getElementById("fze").src = "bayerchristian.de/phppushoverm/1/counter/f…";}}
// END

thanks for suggestions, C. Bayer

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct