u can try retrieving:
location.search
once you are at teh requested page
this will give you any query information in the URL, including the question mark
(?).
Philip Moschovas wrote:
> Hi, i'm kinda a newbie at all this so please bear with me.
>
> i'm sending a parameter at the end of my url as follows
>
> location.href = "myurl.jsp?var=value";
>
> I can retrieve it on the myurl.jsp with request.getParameter, but I was
> wondering if there was a way to retrieve that variable with javascript
> instead.
>
> Thanks for your time,
> Phil
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets