SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot codewrecker's Avatar
    Join Date
    Feb 2002
    Location
    U.S.A.
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    error message and redirect

    I have a very minimal understanding of Javascript. What I would like to do with this error message is redirect the user back to where they came from when the click ok. Here's the error:

    Code:
     error('Your are not authorized to access this page '. '\\nIf you have recieved this message in error, '. '\\ncontact email@emailsomplace.com.');
    sorry if this is a simple question.
    CodeWrecker

  2. #2
    SitePoint Evangelist Mr. Brownstone's Avatar
    Join Date
    May 2002
    Location
    Relative
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here you go:
    Code:
    alert ( 'You are not authorized to access this page\nIf you have received this message in error,\ncontact email@emailsomplace.com.' );
    history.go( -1 );
    Edit:

    Spelling.
    Of course, that's just my opinion. I could be wrong.


Bookmarks

Posting Permissions

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