L
LaughOutLoud
Hi. Does anyone knows that how to retrieve variable on a link from
javascript.
e.g., here I have a link
<a href="http://www.domain.com/index.html?id=1111"
onClick="getid();">click me</a>
<div id="display"></div>
When I click the link, getid function will retrieve the id value from
the link which is "1111" and display it within <div> tag by using
innerHTML. No page refresh.
Is it possible to do that? If so, does anyone know how to do it?
Thanks
javascript.
e.g., here I have a link
<a href="http://www.domain.com/index.html?id=1111"
onClick="getid();">click me</a>
<div id="display"></div>
When I click the link, getid function will retrieve the id value from
the link which is "1111" and display it within <div> tag by using
innerHTML. No page refresh.
Is it possible to do that? If so, does anyone know how to do it?
Thanks