Skip to content Skip to sidebar Skip to footer

Javascript Code In Source Doesn't Reflect Code That Is Actually Executed

My javascript code appears to work as it's supposed to. However, when I 'view source' in Chrome, it disagrees with the javascript that is actually executed. Here is my code:

Solution 1:

When you view the source, you're probably making an additional request. Your session variable will be reset.

If you're using Chrome or Firefox — which you should be — you can open up either the Web Developer Tools or Firebug and examine the actual DOM tree. (This is also pretty useful in situations where a script has added content dynamically.)

Post a Comment for "Javascript Code In Source Doesn't Reflect Code That Is Actually Executed"