>>> this example in Swedish
code & explanations further down
And here´s the code:
A click on the link
CLICK HERE TO OPEN A NEW WINDOW</A>
calls the function
iljbildfonst.document.writeln("<IMG SRC = 'pict.jpg'>")4
There should be just four lines between the curly braces each one of them starting by iljbildfonst.5
Put the function within SCRIPT tags in the HEAD part of the document (see MINIMANUAL 1 basics).
1 you could put a URL here - if you want to open an existing page in the new window - and skip the following lines which are used only if you want to create a new page in the new window
2 you could give the window a name here - necessary if you are going to refer to it using the TARGET tag
3 this is where you write code to make the window look the way you want it to look -
the whole thing between brackets could look like this:
setting only e g menubar=yes means that toolbar, location etc will automatically be set to "=no".
No spaces between options!
4 writes the HTML code (placed within parentheses and quotation marks) to the document, ie, in this case, puts a picture on the page
5 if you have got a lot of text or code to write to the document the code will probably be easier to read if you, instead of writing everything on one line, divide the string into shorter sections, put these sections within double quotation marks and connect them using a plus sign, like this
"<IMG SRC = 'pict.jpg'"
+"HEIGHT = '200'"
+"WIDTH = '200'>"
Last modified: October 19, 1998
This page should be part of a frames system