I have page1.htm, which has 9 links on it. The destination URL for these links is page2.htm and I am appending a variable onto the end of the URL with the number of the link that is clicked. So the destination URL for link 1 is page2.htm?linknum=1.
On page2.htm, I am grabbing the variable linknum from the URL and storing the value of the linknum in a variable called dest. I know variable dest contains the correct value because I can use a document.write statement to output it to the screen, and it's correct based on which link I clicked on page1.htm.
Now, what I want to do is to use variable dest as the source for one of my frames. So here's the shell code:
<!-- script goes here to grab linknum from the URL,
and assign the value of linknum to variable dest.
<frame src="http://www.yahoo.com" id="frm1">
<frame src= [insert variable dest here] id="frm2">
I can't seem to make the [insert variable dest here] portion work to source the bottom frame, no matter what I try. If I don't hardcode the src value, the frame doesn't render at all. Can someone tell me what I may be doing wrong, and provide guidance to how I may accomplish this?