I mean say, I am in listedit.aspx page that has this link,
clicking on this link takes me to the URL,
<A ID=onetidListEdit9 target=_self HREF="savetmpl.aspx
?List=%7B422F76E7%2DA68C%2D4E4D%2D8B0D%2D2999D918FD34%7D">Save document library as template</A>
and in the listedit page(the firstpage), I have a TD
so I need the data in this TD to follow to the next page in some hidden field or something so that I can use it in the next page. Mind you I am clicking on a href link (savetmpl.aspx) to go the next page,
<a id="onetidGoBack" href="/sites/kishoretestsite/Misc%20Docs/Forms/AllItems.aspx"> Go Back to "Docs Misc"</a>
with this script, I captured the exact portion I want,
from the above script listname will get the value as, "Docs Misc"
var temp_listname = document.getElementById("onetidGoBack").innerHTML
var listname = temp_listname;
listname = listname.toString().split('to');
Now, all I need is to some how pass the listname variable to the next page(savetmpl.aspx) where I can use this variable to get the data I want and display it in the other page which is savetmpl.aspx.