#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    51
    Rep Power
    14

    histry.back in js


    PHP Code:
    <html><head>
        <
    script Language="JavaScript">
        
    alert("please re-enterĄC")
        
    history.back();
       
    </script></head></html> 
    The above code is telling the user's pressing and then go to previous page

    What if pressing it will re-direct to another new page say index.htm and not the previous one

    Thanks for any teaching and I know nothing of js..
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    europe
    Posts
    287
    Rep Power
    14
    i guess u better post that to the
    html/javascript forum cause js has almost nothing to do with
    java servlets, jsp...
    cheers, jens
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Location
    Cambridge
    Posts
    6
    Rep Power
    0
    If I'm understanding you correctly, this is one way of redirecting a user with javascript
    Code:
        <html><head>
        <script Language="JavaScript">
        <!--
        alert("please re-enter");
        location.href='index.html';
        //-->
       </script></head></html>

IMN logo majestic logo threadwatch logo seochat tools logo