(Works with IE & Netscape)
In the below URL's I have placed a HTML comment in the source that states my favorite baseball team. See if you can view the source. For the average web user this will be difficult. For the hacker, as some of you have pointed out, it will be easy.
Hacker comments:
The source code for all of the JavaScript examples of working with the window object is located at Window Object
Examples (IE & NS)
Works on Local PC, but not at my web site - very confusing to me!. If run from my web site your browser will hang. I am leaving this code at my web site in hopes that I'll fix the problem later or that someone will fix the code and email it to me.
For the JavaScript guru's:
It look like you cannot create a script tag
that loads a .js file using the document.writeln() function.
Ex that fails: winNew.document.writeln("<script language=\"JavaScript\" src=\"ex_window_norightclick.js\">
</script>");
Testing results:
On Local PC using IE 5.5 - Works fine.
At web site using IE 5.5 - Browser hangs.
On Local PC using Netscape 4.7 - The .js entry in the source code does not get created even though the JavaScript should be creating the entry. Does not work.
At web site using Netscape 4.7 - Works fine. In addition, Netscape will ask the user to "Grant" privileges for "modifying the browser" before this current page is loaded. I don't understand why it asks for those privileges on this web page.
Here is the link.