www.webdeveloper.com
Results 1 to 1 of 1

Thread: reload javascript on IE9

  1. #1
    Join Date
    Sep 2006
    Posts
    192

    reload javascript on IE9

    Using IE9.

    In the JSP page, I added <script type="text/javascript" src="test/scripts/test.js" ></script>

    The file test.js contains a simple function test(){alert("loaded");} to open the alert window.

    Next I created a button named Launch to call this function. When clicked the button, just as expected, the popup window opened and displayed the word: loaded. So far so good.

    Then I went to the browser's URL address box on top and launched a new page, such as www.google.com. Once this page is loaded, I clicked the browser's BACK button to came back to my original page.

    Once my page was loaded, I clicked the Launch button. This time, the function test(){alert("loaded");} never got executed.

    When so?


    (It seems that when the BACK button brought back the original page, the <script type="text/javascript" src="test/scripts/test.js" ></script> is either not execute or the test/scripts/test.js is not loaded. However the same codes worked well on Firefox).
    Last edited by scottjsn; 10-24-2012 at 03:01 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles