tils.file_url_2_path(topFileLoc);
    
    fid = fopen( topFileLoc, 'r');
    

    while 1
        strLine = fgetl(fid);
        if ~ischar(strLine) 
            break; 
        end
        if findstr(strLine,'<frame name="mainFrame" src="')
                        startIdx = findstr( strLine, 'src="') + 5;
            mainTarget = strtok(strLine(startIdx:end),'"');  
            break;
        end

    end
    fclose(fid);

    if isempty(mainTarget)
        mainTarget = topFileLoc;
    end



    