dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Javascript help needed...

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    120

    Javascript help needed...

    What is the simplest/most abridged javascript for auto-redirection of URL?

    like if you go to http://www.xyz.com i want it to automatically redirect to http://www.flashkit.com for example
    Last edited by ealvintan; 12-17-2004 at 07:24 AM.
    You have just read one of Alvin Tan's award-winning posts.

  2. #2
    Harmony & Justice Veniogenesis's Avatar
    Join Date
    Jul 2002
    Location
    Washington D.C.
    Posts
    4,434
    Edit your link.


    Then we'll help you.
    Or get banned.



    But anyways, here's the code:
    (It's not JS.)

    Code:
    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">
    Put that in your header.
    Flash Kit Moderator . Duke University
    Thomas Jefferson High School for Science and Technology

  3. #3
    Old Member gecko2's Avatar
    Join Date
    Aug 2000
    Location
    New Yorkshire, UK
    Posts
    627
    as requested, not the right forum though....

    <script language="JavaScript"><!--
    setTimeout('Redirect()',4000);
    function Redirect()
    {
    location.href = 'http://www.yourdomain.com';
    }
    // -->
    </script>
    Keep it rural.

  4. #4
    Senior Moderator
    FKs Banning Machine
    GMF 's Avatar
    Join Date
    Feb 2000
    Location
    Oslo, Norway
    Posts
    5,697
    moved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center