|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I try to get a parameter from URL and use it
in javascript please help |
|
#2
|
|||
|
|||
|
Do you mean a parameter that you've sent along from another page, or do you mean getting the URL that linked to your page?
In the first case you just send it along with the URL from the previos page. Somerthing like: <a href="your_page.html?parameter=value">go!</a> In the other case: <script language="JavaScript"> if (document.referrer){ document.write("You came from " + document.referrer); } </script> Hope I helped you out! |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > How can i get a parameter from URL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|