2

JS/HTML QUESTION:

I wanna create a html page wich redirect us into a certain website and execute Javascript on the new website opened.

So i should use window.open i think, but how do i like execute js on this website after opened?

Comments
  • 1
    You can't unless you own that website.
  • 0
    @BigBoo Well ok i'm fucked. It's were to make people join my steam group automaticaly ahah. I will not do it so
  • 0
    Theres probably an embeddable button to do that
  • 3
    Window.open will probably be blocked if it’s not from the same domain.

    Hijacking another websites page with JS isn’t possible unless you can embed it during load (think browser extensions) and the other site doesn’t have a sameOrigin policy enabled.

    But you could add this “self click” to your own site and not redirect in the first place, although forcing people to join your steam community just by looking at a webpage would get you some backlash and probably complaints to steam.
  • 0
    @C0D4 Well my idea were to do that when the player join my server or, say a certain command. I don't realy have an idea when to use that but i think this were a realy cool idea to have a lot of people in the group so to send a alert to everybody for events, updates. I don't think it's mean, they will not complain to steam for that

    Garry's mod let us force people to vote for a addons or subscribe by default.
  • 1
    In all honesty, if I am forced into a steamgroup, I will insta leave it and report it to steam. I don't think it is a good thing to create in general :P
  • 0
    I will not do it so. But seriously it were so a f...ing great idea xD
Add Comment