Click to See Complete Forum and Search --> : Check this out!!!


Extreme
09-12-2003, 08:44 PM
I found this script on some website, and it fakes the URL when page is open... This example opens www.google.com and the webpage is completely different..
Now, what I want to know... How to avoid this alert, for start, and then, how to load up some custom HTML page, instead of just writing a TEXT line like in this example..

<SCRIPT>
function f()
{
}

w=window.open("nothing.htm","_blank");
f=w.document.open;

w.location.href="http://www.google.com/";
alert("wait for the page");

f("This is NOT a google page!");


</SCRIPT>

96turnerri
09-13-2003, 10:05 AM
i cant get it to work it just comes up with an error for me doesnt display no text

f("This is NOT a google page!");

Extreme
09-13-2003, 07:56 PM
Yeah, that example doesn't work on some computers, it gives you error right? You can putt IF statement there.. Getit?
Anyways, here is the direct work for shure link for this example
EXAMPLE 1 (http://liudieyuinchina.vip.sina.com/SaveRef_DocumentWrite/SaveRef_DocumentWrite-MyPage.htm)

and here is the other example, a bit different, but it could be modified too, I think.. Tell me if you manage to do anything..
EXAMPLE 2 (http://liudieyuinchina.vip.sina.com/NAFfileJPU/NAFfileJPU-MyPage.htm)

But you must modify it, so it doesn't popsup alert, and that it loads up custom HTML page.