Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Very Simple JavaScript Question

  • Subject: Re: Very Simple JavaScript Question
  • From: Hywel Jenkins <hyweljenkins@hotmail.com>
  • Date: Fri, 7 Jan 2005 06:53:01 -0000
  • Newsgroups: alt.html
  • References: <crlb86$2rqp$1@godfrey.mcc.ac.uk>
  • User-agent: MicroPlanet-Gravity/2.60.2060
  • Xref: news.mcc.ac.uk alt.html:276490
In article <crlb86$2rqp$1@godfrey.mcc.ac.uk>, newsgroups@schestowitz.com 
says...
> Let us say I have a JavaScript function called get_one() which returns a
> one. I am not entirely sure if the returned value can be accessed only by
> another function.

The value returned can be accessed by any other function or operation as 
long as it's within scope.


> Is there a way of doing something like the following?
> 
> <font size=get_one()>Hello World</font>
> 
> Must I use document.write?

Yes, though which version of HTML are you using?  Presumably it's an old 
one, seeing as you've got a <font> element.

-- 
Hywel     http://kibo.org.uk/
I do not eat quiche.

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index