Insert Javascript genereted HTML

C

Cognition Peon

Hi,

Can I insert HTML that is generated by a javascript function. Instead of
calling that function in <body onLoad> I want to call call it in the
middle of my HTML code. Here an example.

<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<! call function >
javascript:createCalendar();

</FORM>

Thanks,
Prakash.
 
M

Mikhail Esteves

Cognition Peon, on Tue, 04 Nov 2003 13:19:19 -0700, had to say:
Can I insert HTML that is generated by a javascript function. Instead of
calling that function in <body onLoad> I want to call call it in the
middle of my HTML code. Here an example.

<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<! call function >
javascript:createCalendar();

</FORM>

function createCalendar(){
document.write("<input type=\"radio\" name=\"area\">\n");
document.write("next-html-line\n");
// and so on
}
 
F

Fabian

Cognition Peon hu kiteb:
Hi,

Can I insert HTML that is generated by a javascript function. Instead
of calling that function in <body onLoad> I want to call call it in
the middle of my HTML code. Here an example.

<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<! call function >
javascript:createCalendar();

</FORM>

Sure you can. I have an example in my sig here.
 
L

Lee

Cognition Peon said:
Hi,

Can I insert HTML that is generated by a javascript function. Instead of
calling that function in <body onLoad> I want to call call it in the
middle of my HTML code. Here an example.

<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<! call function >
javascript:createCalendar();

</FORM>


<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<script type="text/javascript">createCalendar()</script>

</FORM>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top