- Jul 17, 2006
- 3,990
- 6
- 81
So anyway. I know of the 3 types: Reflected, Persistent and DOM.
Reflected is when code (either HTML or Javascript) is put into the URL or form fields of the site and that code is reflected back to the user.
Persistent: Is when code (either HTML or Javascript) is stored someway on teh server. (i.e. a blog) and the code is executed every time a user visits the page.
DOM??????? : I see different things. It seems DOM can either be persistent or reflected??? I was reading somewhere that DOM is only with JavaScript. I'm not getting a clear answer. I know what DOM is and how it relates to "security of origin" with the browser and how javascript is only supposed to execute within the domain that it's in. But, DOM appears to be a description of either reflected or persistent?????
Reflected is when code (either HTML or Javascript) is put into the URL or form fields of the site and that code is reflected back to the user.
Persistent: Is when code (either HTML or Javascript) is stored someway on teh server. (i.e. a blog) and the code is executed every time a user visits the page.
DOM??????? : I see different things. It seems DOM can either be persistent or reflected??? I was reading somewhere that DOM is only with JavaScript. I'm not getting a clear answer. I know what DOM is and how it relates to "security of origin" with the browser and how javascript is only supposed to execute within the domain that it's in. But, DOM appears to be a description of either reflected or persistent?????