Reply to Re: Javascript: is it possible to pass a parameter to a function inside a document write?

Your name:

Reply:


Posted by Dylan Parry on 10/07/05 11:28

Using a pointed stick and pebbles, rf scraped:

>> document.write('<span onclick="myfunction(' + parameter + ')"></span>');
>
> or perhaps:
>
> document.write('<span onclick="myfunction(\"parameter\")"><span>');

Hmm, I was reading the OP as something else, ie. how to dynamically add
a parameter value using JavaScript to write the actual value based on a
variable named "parameter" which needed to be inserted into the function
call.

--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация