View Full Version : Is this good or bad? Odd Javascript found...
LadyShelly2
7-7-02, 01:27 AM
I found this little script on one of my pages when viewing the source code to find a problem:
<!-- BEGIN Popup Blocker -->
<script language='javascript'>
NS_ActualOpen=window.open;
function NS_NullWindow(){this.window;}
function NS_NewOpen(url,nam,atr){return(new NS_NullWindow());}
window.open=NS_NewOpen;
</script>
<!-- END Popup Blocker -->
<script> window.open=NS_ActualOpen; </script>
I didn't put it there... and does it really block ads? or does it open ads?
Any comments would be greatly appreciated!
Thanks,
Shelly
P.S. How did that get there anyway? did the browser (IE6) put it there?
alphadesk
7-7-02, 01:36 AM
Looks like javascript to block the geocities popup from your old account. I'd remove it from one page and see what happens. If all's cool I'd remove it from all pages.
LadyShelly2
7-7-02, 01:44 AM
I've removed it (and all other references to geocities) off the first couple of pages and everything's cool.
Thanks, I was just wondering what it was.
Looks like alphadesk has it right as usual.
Just wanted to add that some programs like Zone Alarm Pro has the option to block ads & inserts a similar code into web pages on your computer as you visit them unless you direct it not to be blocked. I looked at some of your pages & see that there are some left with the code & I'm not using ZAP on this computer so thats not the case here.
LadyShelly2
7-8-02, 01:53 PM
I do have Zone Alarm Pro... and I noticed it on another page not related to geocities.
So my next question is: Would that script stop any popup that IE has in the cache file for ads? Or would it be useful to others viewing a page with it already on it.
~Shelly (who doesn't know much about java scripts)
I’m not really sure about that. Maybe someone else can shed some light on it.
I do have cookie & ad control set to on at the medium setting. Overall it does block most popups & on page ads that take more than 3 seconds to load. However it does have several drawbacks in that I use McAfee virus scan & during it’s daily check for updates & if an update is detected the update page just sits there until I turn off the control. I also have run into several web pages that do not load at all, like a page not found type thing & if I refresh it the page still does not come up. If I shut off the control, then the page loads. There are settings you can change to add pages that you want blocking turned off but, I have not had any success with the virus update & some other pages.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.