Results 1 to 3 of 3

Thread: Questions about IE&Firefox (2)

  1. #1
    Join Date
    Nov 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Questions about IE&Firefox (2)

    ----------------------------------------------
    function RefreshTime()
    {
    document.execCommand("refresh");
    }

    <input type="button"onClick="RefreshTime()" value=" Refresh ">
    ---------------------------------
    It works in IEs,but dosen't in firefox,why?
    Thanks!

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    If you want to refresh the page, then use:
    Code:
    window.location.reload();
    This works on all browsers.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Nov 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you!tech_spport! It works well on both IEs & Firefox!

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
  •