Saturday, July 30, 2005

Opening and Writing to new browser window

1. Start the function function open_it(name) {
2. Define the contents contents = "hello there "+name;
3. Start the new window

anynamehere=window.open("","windownamehere","options");

4. Write the contents to the window, anynamehere.document.write(contents);
5. Finish and open the window, anynamehere.document.close();
6.End Function }

NOTE: Options can be...

"toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0,
width=300,height=200"








0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home