JavaSript intended for nonprogrammers.
A Java program or Applet, can be loaded by HTML page and executed by the Java Interpreter, which is embedded into the browser. Java is a object-oriented complex language like C++ language.
Java is more than a programming language.
Java knocked down the walls between different various of personal computers, letting any program run without conversion on any kind of machine. It does things other languages does, but it does it better.
No development tools or compilers are required.
<!-- window.alert("... "); display a message to the user in a screen dialog box. Click X to close it. --!>
What happens when you request a Web page from a server?
When you enter or select a URL:
1) The browser sends a Get request to the server.
2) The server sends back to the browser the Web page requested by the browser.
3) The browser sends a request for each graphic to the server.
4) The browser allocate space for graphics on your PC and display the Web page without waiting for the graphics arrival.
5) The remaining graphics are displayed as they received.
1) After the server sends the HTML Web page the browser, and the browser received it.
2) The browser examines the HTML for <script> tag.
3) If a <script> tag is included the browser process the script.
1) If the script is included in the header, it is ignored unless another script calls it.
2) If the script is included directly in the body, its output will be included in the Web page.
3) If the script is an event handler for a specific part of the page, it will be processed only when the event happens.
You can display the current date and time.
You can include information depends on the user's input.
You can also display the information you need to change in a separate frame.
You can change the images, and anything in a form element.
Your Source Code is Accessible:
You legally have a
Copyright © 2001 by Ahmed Eissa
How can you prevent the"HTML Source Code" for a document from being viewed?
How secure are the methods used by"HTML Guard" ?
1. Encode source code
"Squeeze" source code (remove line feeds)
Removing unnecessary line feeds and blank characters leaves the source text looking extremely intricate and difficult to read, because the original structure of the code will be disturbed. Although manual editing is made much more difficult in this way, visual HTML editors can process the "squeezed" code without difficulty. Furthermore programs are available that are able to convert unstructured source code into clearly arranged HTML.
3. Insert blank lines
"HTML Guard" offers the option to add blank lines to the top and the end of your source code. This way it will appear to the viewer as if no source code is available. In order to intensify this effect you can enter an additional text such as "Source code not available" which will be shown at the top of the code. This method is a relatively simple diversion which a professional will certainly never be taken in by, because the source code can easily be reached by scrolling down the window. However, searching for the source text can be made significantly more difficult by increasing the number of blank lines. When using this option you should be aware that each additional empty line increases the file size by two bytes.
4. Lock the menu on the right mouse button
To prevent copying of images and links you can disable the right mouse button in the browser. Consequently the menu that normally appears after a right click will no longer be available. Unfortunately, this method currently only works with Internet Explorer (version 3.0 and above) and Netscape Navigator (3.0 or above). The majority of other available browsers, while in the minority, are unaffected by the right click protection and both images and links can be copied using the right mouse button. Furthermore you should consider that people do not like to be restricted too much and therefore a complete deactivation of the right mouse button might be an unpopular decision. That is why we include the option to "Disable right click on images" to allow you more flexibility.
5. Block text selection
Using the "Block text selection" option, you can stop visitors from selecting text, images or other elements in their browsers. This prevents people from copying your content to the clipboard. It should be noted that this method only works with Internet Explorer 4.0 and above. However, with Microsoft's Internet Explorer being so widely used, this option will prevent the majority of users from stealing your content.
6. Print only blank pages
Selecting the "Print only blank pages"option will prevent your visitors from printing your pages. Each print attempt will merely give out a blank page. Unfortunately this function is only available with Internet Explorer 5.0 or above. Be aware that no warning is given, so users may suspect a faulty printer or defective software.
Ahmed's Home Page