Prevent GoDaddy code from showing up in source code

sfidirectory

Senior Member
Joined
Mar 29, 2010
Messages
931
Reaction score
504
Hey everyone,

I know how to block them tacky GoDaddy banners they display for free hosting (using a simple css fragment) but am wanting to completely eliminate it from showing up in my source code, eg when I visit my site in a browser I have a look at the source code and right down the bottom the GoDaddy iFrame etc is there.

It's probably not that big of an issue but it is a bad look for when I claim that I produce fully valid HTML/CSS websites, and the only warnings I get are in regard to the GoDaddy code.

If anyone knows how to do this I will be greatful!
 
Give me am example site and I can probably help.

Suggest jquery .remove() method. Quick search might help you.
 
You say you're fixing it with css. I used to fix it with javascript.

Code:
window.stop()

Execute that in a javascript block at the end of your page and whatever comes after that won't render (no godaddy ads).

Producing fully valid HTML/CSS websites isn't a selling point. If your customer knows what it means they know it doesn't mean anything. If your client doesn't know what it means they won't know to ask anyways. If someone knows what it means and they actually care about it, they're a super geek web designer and you won't be making sites for them anyways.
 
Give me am example site and I can probably help.

Suggest jquery .remove() method. Quick search might help you.

The bit.ly link in my signature goes to my site that I'm talking about here. I have only just started getting deep into Javascript etc... maybe there is a visibility function that can alter the source code displayed when you use "view source"? I've also been looking at DOM scripting and maybe that might be a good place to start...
 
I know what you want to do, but there isn't any method available which will remove code from the source of a webpage sent by the server. You can blank out what you see by looking at a web page with css but not the source code.
 
Back
Top