Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: ShadowAce
Here is the bit of JavaScript that they are using to do this

<script language="JavaScript" type="text/javascript">
var o_height = 768;
var o_width = 1024;

if ( screen.width > 100 )
{
o_width = screen.width;
}

if ( screen.height > 100 )
{
o_height = screen.height;
}

function run()
{
if ( window.opera )
{

window.open('http://www.google.com.secunia.com/tests/origin_spoof.php', '_blank', 'height=1,width=1,left=3000,top=3000,resizable=no,scrollbars=no');
}
else
{
window.open('http://www.google.com.secunia.com/tests/origin_spoof.php', '_blank', 'height=1,width=1,resizable=no,scrollbars=no,left=' + ((o_width / 2) - 50) + ',top=' + ((o_height / 2) - 150) ); }
window.focus();
}
</script>

6 posted on 06/22/2005 10:55:19 AM PDT by N3WBI3 (I musta taken a wrong turn at 198.182.159.17)
[ Post Reply | Private Reply | To 1 | View Replies ]


To: N3WBI3
And of course here is how you would call that function

(a href="http://www.google.com/" onclick="run();")

7 posted on 06/22/2005 10:57:53 AM PDT by N3WBI3 (I musta taken a wrong turn at 198.182.159.17)
[ Post Reply | Private Reply | To 6 | View Replies ]

To: N3WBI3
Here's how you stop it for Firefox.
Firefox NoScript Extension.
10 posted on 06/22/2005 11:02:32 AM PDT by atomic_dog
[ Post Reply | Private Reply | To 6 | View Replies ]

To: N3WBI3

Does the "NoScript" Extension in Firfox take care of this?

https://addons.mozilla.org/extensions/?application=firefox

I just installed it yesterday, and it seemed to crash FireFox when I had the "Auto Reload Page after permission change" turned on.


36 posted on 06/24/2005 10:07:01 AM PDT by Craigon
[ Post Reply | Private Reply | To 6 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson