Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Javascript Functions 1

Status
Not open for further replies.

Krus1972

Programmer
Joined
Mar 18, 2004
Messages
145
Location
US
Hello,

I am currenlty using the src= attribute within the script tags to retireve javascript from a different http address. The Javascript recieved prints live text datafeeds to the visitors' browser from my site in pure javacript not html.

The problem I am having is that the source is displaying unwanted images (porn advertisments) on my webpage. The source is doing this using a javascript function. It is called "function _genHeaderLogo2".

I have no control over the javacript as it is on a third party site and is being sourced in ( script src=" /script)

Is there any type of javascript I can place before the script tags that will tell the browser to dis regard this specific function?

Any help would be appreciated.
Thnaks,

Jeff
 
It sounds like you are hijacking someone else's code to do work for your own page?
Is this a legitimate usage of the remote code? If so, you could ask them to remove the porn. Otherwise you are stealing someone else's work and bandwidth for your own benefit and I would not want to aid in that.


At my age I still learn something new every day, but I forget two others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top