In this document, I've provided snippets of information about a few topics you might find useful or interesting as you build your pages. We'll look at a few examples of each if we have time.
elsewhere: you can write forms that send mail. Simply make the
action on your form
As you might expect, you can write to the windows you create with
windownamedocument.write(...). Extra windows
can be useful for status or debugging messages.
While you need not provide any parameters to the
method, you can gain more control over the window by using some of them.
The full form of the command is
open(URL, name, features) </script> where the features include
toolbar-- show the tool bar
location-- show the location
status-- show the status bar
scrollbars-- show scroll bars
copyhistory-- copy the history from the Go menu
width=...-- the width of the window
height=...-- the height of the window
Using a variety of techniques, it is possible to create simple text-based animations in HTML. For example, you can create a marquee effect by repeatedly removing the first letter from a field and then putting it back on the end.
However, it is generally recommended that you do not use such animations. Why? They're very distracting to the user, and can simultaneously increase the amount of time someone spends trying to read our page and decrease the amount the get out of our page.
In building sites, rather than pages, we often want to preserve information between these pages, and sometimes even between sessions. While we can use query strings to pass information between pages, that method can become cumbersome and is easy to break (what happens if a user loads a page without clicking on one of our links?).
Fortunately, most browsers support a form of persistant data known
as the cookie. You can refer to all the cookie for a document
document.cookie. This looks surprisingly like a query
string, but with additional information. I strongly recommend that
you use utiltiy functions if you want to manipulate cookies.
Bill Dortch has written a particulary nice set.
parameter to the
<script> tag. How can you take advantage of libraries in that case? I recommend that you make two
copies of each file, one that loads the libraries using
src, the other with the code inlined. You will soon
find a utility for making this conversion on my web site.
Other than that, i recommend that you read the documentation, and test your programs in each browser. You can also check for the browser type, which will help you determine what code to use.
This page written by Samuel A. Rebelsky.
This page generated on 44 by SamR's Site Suite.