SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: conditions

Hybrid View

  1. #1
    SitePoint Addict Mr Jojo's Avatar
    Join Date
    May 2007
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    conditions

    How can i tell java this:


    If adressbar = www.doman1.com then bla bla bla...
    If adressbar = www.domain2.com then bla ble bli...



    I dunno JS..

    Thanks!

  2. #2
    SitePoint Enthusiast shn's Avatar
    Join Date
    Jan 2006
    Location
    Munich DE
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're looking for
    Code JavaScript:
    window.location.href
    Patrick

  3. #3
    SitePoint Addict Mr Jojo's Avatar
    Join Date
    May 2007
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How can i say,

    if window.location.href = "www.fdsfsdf.com" or "fdsfsdf.com" or "http://fdsfsdf.com" or "fdsfsdf" then goto "www.tt3343.com"

    else

    goto "www.fsdfffff.com"
    How can i tell him that?
    I dunno how to script it in JS.

    Thanks


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
  •