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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_TOP removing script

Status
Not open for further replies.

arxix

MIS
Joined
Feb 11, 2006
Messages
1
Location
US
I am at my wits end and my brain is about dead. I work for a company in the NOC (network operations center) and we have a small internal only web page. One of the monitors we use is an external company that tests all our si.... lets just skip to my problem...

I need a script that will remove all instances of:
target="_top"
in a page on the fly. I am forced to use a page with frames, (please pause the flaming about frames, its not an option at this point) and a page that we link to and need to appear in a frame has target="_top"'s all over the place. As im sure all you web guru's know this mixes like oil and water. Any help would be appreciated, and yes...I have googled the crap out of my problem and either its well hidden or im not looking properly.

Thanks in advance,
Alan
 
You'll have to scrape the page server-side, and deliver a version without the target attributes. I say this, because you'll not be able to do it client-side if the framed page is in a different domain to yours.

Suggest you ask about scraping the page in the forum for whatever server-side language you'll be using.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top