Can I Prevent Javascript From Running On My Page?
RSS

Can I Prevent Javascript From Running On My Page?

Category: FAQ   Time: 2010-02-08   Tags: , , , ,

Below is some simple code on a page hosted by godaddy. This is a simple “starter page” at the end of which godaddy calls a script that forces their banner ad at the top of the page. I want to get rid of the banner ad and am wondering if there is some script I can write to basically prevent the godaddy script from running.

BLAH BLAH BLAH

blah blah


<script language='javascript' src='https://a12.alphagodaddy.com/hostin…

Next: Hostmonster Or Gadaddy, Web Design?
Previous: ¿can Someone Redirect My Domain To Point Someone Else?
"Can I Prevent Javascript From Running On My Page?" was posted on Monday, February 8th, 2010 at 9:29 pm.

3 Responses to “Can I Prevent Javascript From Running On My Page?”
  1. Alex V(2010-02-09):

    This is probably a violation of your EULA, but here is what I would do:
    Instead of stopping JS (which, as far as I know, you can’t do) I would just use Javascript to hide the ad.
    (sorry about the line breaks, Yahoo cuts up the code)
    Try this:
    window.onload = function() {document.getElementById
    (’conash3D0′).style.display = “none”}
    That should work.

  2. Blackcom(2010-02-09):

    Menu Options Bar->Tools->Options->Content (mozilla)
    not sure about ie
    Edit:
    Oh, never mind, this is to stop enabling javascript functionality. If its a ad from your hosting company you may not be able to get rid of it, but Im no expert.
    The code above should fix your problem.

  3. szandrah(2010-02-09):

    Yes, most browsers have a way of blocking JavaScript. Look up the help file of your browser to see how to do it.

Leave a Reply

 
Recent Posts
Random Posts