Jump to content

Block web content using JavaScript.


atar.yosef

Recommended Posts

Hi there!!Modern browser allow users to specify a JavaScript code that will be executed every time the user load a web site. and my question is: is there any way to block some parts of a web site from being shown by using some JavaScript code? And if yes, so how?Thanks in advance!!Atar.

Link to comment
Share on other sites

You can target elements a variety of ways, once you get the elements you want to hide then you can either remove them from the DOM completely, or use CSS to set their display or visibility properties so that they don't appear.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...