Results 1 to 3 of 3

Thread: Javascript question

  1. #1
    Elite Member ghost's Avatar
    Join Date
    Oct 1999
    Location
    Virginia
    Posts
    11,599

    Javascript question

    Look at this Javascript below:

    Code:
    <!-- Begin DesignerWiz.com Navigation --><div align="center"><center>
    
    <table border="0" bgcolor="#000000">
        <tr>
            <td align="center"><input type="button"
            value=" &lt;&lt; " onclick="javascript:history.back(-1);">
            <input type="button" value="Home" onclick="Index.htm"> <input
            type="button" value=" &gt;&gt; " onclick="driver_edu.htm"></td>
        </tr>
    </table>
    </center></div><!-- End Navigation -->
    You see where it says "Index.htm" and "driver_edu.htm"? If those web pages are in the same directory where the HTML document is in which this script occurs, can I just use the document's name, i.e., Index.htm or driver_edu.htm, or do I have to point to the entire URL?

    Thanks for any input.

  2. #2
    ♫♪ ♫♪ ♫♪ ♫♪ downhill's Avatar
    Join Date
    Jan 2000
    Location
    My Own Private Idaho
    Posts
    34,796
    If they are in the same directory, it should work.

  3. #3
    Elite Member ghost's Avatar
    Join Date
    Oct 1999
    Location
    Virginia
    Posts
    11,599
    Thanks, downhill, that's what I suspected, so I left it as shown.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •