First time poster in Java.. URL question need help :)

Discussion in 'JavaScript' started by 5ive, Feb 24, 2012.

  1. #1
    Hi.

    I have been here in DP for ages but never posted in this section before, im sure you guys are awesome in here too :p

    I need some help with a URL redirection.. The thing is like this, i have a small hosting company for local businesses, and most of them have trouble to log in to their emails from cPanel. I have seen hosting companies have a link on their website that will take the customers to the cPanel log in page as seen in HERE at right side in header you see WEBMAIL... I know in cPanel you can write www.mydomain.com/webbmail and it will pop up a log in window, but i want my clients to come to the cPanel web-mail window as seen in that site there, I can see they are using some kins of JavaScript, but im not good at this at all...

    Please help me to solve this


    what i mean is this..

    HERE is how i want it

    and

    HERE is how i have it now
     
    5ive, Feb 24, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    I'm not sure what you want, but a redirect to the webmail page might do it.

    window.location = "http://www.mysite.com/webmail.html"
    Code (markup):
     
    Rukbat, Feb 25, 2012 IP