English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I made a website and hosted it with netfirms...They always put advertisements in the actual html source. Is it possible for me to disable the actual html document.-->not letting them edit it?

2006-11-06 15:49:36 · 2 answers · asked by untitled10101 2 in Computers & Internet Programming & Design

2 answers

Hi,

You can not actually stop them from appending the HTML to your page; however, you can get rid of it. What you need to do is create an JavaScript function which fires at the onLoad event of your page. (See my example)

....

You can then parse the HTML page created and set all their elements to having a style = none which would make them invisible. You can also close popups since they are a child of your current window. I am sure with a quick google search, you could find examples of the code.

All that being said, I am pretty sure hiding/removing their code is against their usage policy and if some one reports you, they could take your site down. So there are some downsides to consider.

Hope this helps,

Leo

2006-11-06 18:34:30 · answer #1 · answered by Leo R 2 · 0 0

The webhosting company would be the administrator of the web server, while your account is a user account. By definition they have more rights on your site than you do.
If you want to eliminate ads on your website, you can go with one of many paid webhosting options. Free hosting has to pay for itself somehow. Some hosts have reasonable ads though. www.gig4free.com for example has a single ad at the top of each page. It does not put multiple ads or use popups or popunders. They also have a paid option which would eliminate all ads.

2006-11-07 00:26:10 · answer #2 · answered by bill91173 3 · 0 1

fedest.com, questions and answers