I want to put a text file into a table cell like below:
                   <td>
                            <script>
                            var t = new Date();
                            var m = t.getMonth()+1;
                            var d = t.getDate();
                            mm = m.toString();
                            dd = d.toString();
                            var f = mm + dd + ".txt";
                            window.location.href = f; 
                            </script>
                    </td>
Only that text file is displayed however. The rest of the webpage isn't shown. i'm guessing it's the "window.location.href = f;" line. What shoud I do instead?
 
     
    