Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic url links 1

Status
Not open for further replies.

borntorun

MIS
Oct 16, 2003
82
GB
HI,

I have a javascript loop that gets a users settings, from this i would like to dynamically on a web page create the users html links.

For example she selects companies i will create links to the companies they selected.

Thanks.
 
Can you help me add the links?

How do i dynamically generate html links for a list of say 5 to 10 items?

Thanks.
 
Many ways:

Code:
document.write('<a href="something.html">link</a>');

or

Code:
document.getElementById('linkContainer').innerHTML = '<a href="something.html">link</a>';

...

<div id="linkContainer"></div>

are two of the many ways.

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top