Click to See Complete Forum and Search --> : String Passing


NapoleanSolo
03-20-2003, 05:58 AM
Hi guys!

I'm making a site for a friend, aimed at teaching young kids.

Part of the site is a spelling page. There will be 26 words, one for each letter of the alphabet, a Apple, b Ball etc.

When the kid clicks on a word, a new window will open with the word spelled out, i.e; B A L L

What's the most robust way to implement this? I don't know a lot about html, but i am familiar with programming languages, so i guess i need to somehow pass a String containing the selected word to the new window.

Has anyone any ideas on how to do this?

All help is appreciated, thanks

Joe

pyro
03-20-2003, 04:19 PM
Are the words normal links? You could do this:

<a href="yourpage.htm?apple">Apple</a>
<a href="yourpage.htm?ball">Ball</a>

And then on yourpage.htm, you would just need to strip the query string from the url (window.location.search) to know which link was clicked to bring them there...