I have a problem with javascript:popupwindow('url') method .... i want to call method javascript :popupwindow('url') and i want to give a relative path in the url not the absolute path .. the same problems with <a href> and <img src> tags i solved this by using the <base href > tag in header. so i mention the relative path in <a href> and <img src> tags. but in case of popupwindow method url is not embeded with the base href tag .. I have one file which include in different directories and in this file i have to call popuwindow function and i want to give relative path rather then absolute path.