Forum Moderators: open

Message Too Old, No Replies

Teleport to other url

Teleport to other url

         

Sephh

12:32 pm on May 3, 2006 (gmt 0)

10+ Year Member



The code I use is this:<META http-equiv="refresh" content="1; URL=http://google.com/">';

I want a code that is not refreshing. Instead, to open google.com in a blank page.

Trace

4:36 pm on May 3, 2006 (gmt 0)

10+ Year Member



<script type="text/javascript">
window.open('http://www.google.com');
</script>

kaled

5:18 pm on May 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Be aware that popup-blockers are designed specifically to prevent this sort of thing.

Kaled.

Sephh

6:34 pm on May 3, 2006 (gmt 0)

10+ Year Member



No that isn`t good.

Here is the php script:

<?php
switch(!isset($_GET["link"]))
{
case '':
echo '<a href="index.php?link=google" class="menu">google</a><META http-equiv="refresh" content="1; URL=http://google.com/"; target="_blank">';
break;
case 'fff':
echo '<a href="index.php?link=google" class="menu">google</a>';
break;
case 'google':
echo '<a href="index.php?link=google" class="menu">google</a>';

The thing I want is to hide the url like google.com into my site: www.mysite.com/index.php?link=google.
When you click it to go to google.com.
}
?>