Absolute link ?

Posted on 2013-10-02
Medium Priority
Last Modified: 2013-10-02
I have an include file that has a script that will redirect to a page, this is part of the code:

        window.location.href = '../signout.asp';

Problem is that this include file is sometimes at the root level, sometimes included on page one or two levels up.
Also, this site is hosted in different domains, so I cant use an absolute link: http://www.domain.com/signout.asp

Is there a way to link to the root folder of the website then the page?  Something like:  'root/signout.asp' ?
Question by:Aleks
  • 2
LVL 34

Accepted Solution

Big Monty earned 2000 total points
ID: 39540352

This should work

Author Comment

ID: 39540367
LVL 34

Expert Comment

by:Big Monty
ID: 39540394
Glad I could help :-)

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Custom Android App Development is the need of an hour for several businesses. If you go through the right firm for Android Application Development, it can make a huge difference to the ways in which customers interact with your business.
Over time, the online landscape has altered considerably, but that’s nothing compared to the up-and-coming trends that will shape the web design industry in the coming year. Keep reading to find out which trends will shape B2B web design in 2018.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question