_Arno_
10-24-2003, 04:25 AM
ive tried alot of things , but how do i pass a var to next page with <a> attribute
|
Click to See Complete Forum and Search --> : passing var _Arno_ 10-24-2003, 04:25 AM ive tried alot of things , but how do i pass a var to next page with <a> attribute Mr J 10-24-2003, 08:04 AM Something like this maybe In the next page (page2.htm) <script> if (location.search.length > 0) dataPassed = unescape(location.search.substring(1)); alert(dataPassed) </script> In the sending page <a href="page2.htm?hello world">Pass a string</a> <a href="page2.htm?1 2 3 4 5">Pass a number</a> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |