Cogito wrote:
> The following form (which I copied from somewhere) consists of one
> button only:
>
> <form>
> <input type=button value="Solution" style="background-color: d7dcc5"
> onClick="window . open ('solution.html', '',
> 'width=300,height=450');">
> </form>
A very nasty, inaccessible way of doing:
<a href="solution.html"
onclick="if(window.open){window.open(this.href,'my Window',width=300,height=450');return
false;}else{return true;}">Solution</a>
The code you provided also happens to have a number of syntax errors.
> My questions are:
> 1. How do I set the font size and color?
Same as any other element:
http://www.w3.org/TR/CSS2/fonts.html#font-size-props
http://www.w3.org/TR/CSS2/colors.html#colors
> 2. The pop-up window appears at the top left corner of the screen. Is
> it possible to set a different location?
In ordef or preference:
(1) Don't use a popup window
(2) Don't use a popup window (Yes, I know I put this one twice. It is a VERY
good solution to the problem)
(3) Get a better windowing system that places the window somewhere you're
happier with
(4) Muck about with the "moveto()" function in the onload event of the
document you are loading in to the new window.
--
David Dorward
http://dorward.me.uk/