|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
dynamic value assignment to a variable with <a> tag
Hi,
I want to send a variable with anchor tag <a href="xxx.ccc"?var1=ab>(ab is the value generated dynamically) dynamically. pls help me thanks in advance. |
|
#2
|
||||
|
||||
|
Are you saying that you want to generate a random string to append to the URL? If so, look into the Math.rand() and Math.floor() functions and of course document.write(). There's an excellent js reference at devguru.com.
|
|
#3
|
||||
|
||||
|
I think sanindhya is trying to access the GET variables using Javascript...
Here's a page with a method of how to do it: http://hotwired.lycos.com/webmonkey...gory=forms_data I haven't tried t his... but it looks like it would work... to use the code, simply paste it in your page and then you'll access the var1 variable (from your example) using FORM['var1'] |
|
#4
|
||||
|
||||
|
search this forum for "querystring" - i vaguely remember discussing this, and posting a like to some code.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > dynamic value assignment to a variable with <a> tag |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|