+ Reply to Thread
Results 1 to 3 of 3

Thread: JavaScript:Tutorial, Redirect URL

  1. #1
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6

    JavaScript:Tutorial, Redirect URL

    Introduction:-
    Welcome to another JavaScript tutorial of mine..This will code will Redirect the user to a specified website

    Solution:-
    This code goes in the <head> tags:-

    Code:
    <SCRIPT language="JavaScript"> 
     function redirUrl()
      {
        top.location="http://forum.codecall.net";
       }
     
       if (top.frames.length==0)
        {
         alert("You will be redirected to forum.codecall.net in 3 seconds!");
         setTimeout('redirUrl()',3000);
         }
    </SCRIPT>
    Explanation:-
    I think it's self explanatory no need of explanations! Its too simple

    A Preview:-


    Conclusion:-
    As Always Feedback is welcome and the full source is attached!!
    Attached Files
    Last edited by TcM; 12-03-2006 at 06:57 AM.

  2. #2
    Co-Administrator xXHalfSliceXx is an unknown quantity at this point xXHalfSliceXx's Avatar
    Join Date
    Oct 2006
    Location
    Hendersonville, NC
    Age
    26
    Posts
    1,807
    Blog Entries
    3
    0_o Not quite custom. I made that script to an intro class in Tech School. I can look that up in my java book here at home...

    Good redirector, but you can find that anywhere.


  3. #3
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6
    Well Its simple and can be done by anyone and found anywhere but still.. its a tutorial

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. JavaScript:Tutorial, Confirmation Box
    By TcM in forum Javascript
    Replies: 5
    Last Post: 11-07-2009, 10:13 PM
  2. JavaScript:Tutorial, Display MsgBox
    By TcM in forum Javascript
    Replies: 16
    Last Post: 08-13-2009, 07:29 AM
  3. JavaScript:Tutorial, MouseOver Image Change
    By TcM in forum Javascript
    Replies: 4
    Last Post: 06-06-2009, 08:49 AM
  4. Search Engine Redirect
    By TcM in forum Search Engine Optimization
    Replies: 3
    Last Post: 08-25-2007, 01:23 PM
  5. JavaScript:Tutorial, Prompt
    By TcM in forum Javascript
    Replies: 2
    Last Post: 01-21-2007, 03:58 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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