Closed Thread Icon

Preserved Topic: Can JavaScript read document's parameter? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18070" title="Pages that link to Preserved Topic: Can JavaScript read document&amp;#039;s parameter? (Page 1 of 1)" rel="nofollow" >Preserved Topic: Can JavaScript read document&#039;s parameter? <span class="small">(Page 1 of 1)</span>\

 
lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 06-07-2001 12:36

Hello,

I usually do this: http://host/file1.php?name=lallous&flag=1
then i do: <? echo $name; echo $flag ?>
that's in PHP...
now if i have an htm file: http://host/file1.htm?name=...&flag=...
how can i do like: <script> document.write(name); document.write(flag); </script>

?

-=l=-

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 06-07-2001 13:15

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 06-07-2001 15:12

yes, good idea Ini. But i don't want a document to run another in order to get the parameter from the url...
err......pause....i got an idea...

alert(location);

wow! it returns everything including params....okay now i can parse them on my own...



InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 06-07-2001 15:17

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

linear
Paranoid (IV) Inmate

From: other places
Insane since: Mar 2001

posted posted 06-07-2001 15:37

lallous,

location.search should give you exactly what you want.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 06-07-2001 16:00

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

« BackwardsOnwards »

Show Forum Drop Down Menu