Hi everyone,
I've finally figured out what I actually want to do with my website, let's
hope this time I can explain it better.
The opening page of the website has a bunch of links that look somewhat
like:
<a href="geninfo.h tml?sub_contact .html">
The page geninfo.html contains an inline frame called "frame" and has a
short script like this:
<!--
var temp=window.loc ation.split("?" );
var content=temp[1]
//-->
I am assuming after I clicked the link from the opening page the variable
"content" now contains "sub_contact.ht ml". Am I correct?
How can I use this variable in my iframe tag?
I've tried this:
<iframe name="frame" height="409" width="580" border="0" frameborder="0"
src=content scrolling="no">
but that's obviously wrong since it didn't work.
Can someone please tell me how I can achieve this? I'm very new in web
scripting/programming.
Thanks for the answers so far and any further suggestions would be greatly
appreciated.
Cheers,
Dany.
I've finally figured out what I actually want to do with my website, let's
hope this time I can explain it better.
The opening page of the website has a bunch of links that look somewhat
like:
<a href="geninfo.h tml?sub_contact .html">
The page geninfo.html contains an inline frame called "frame" and has a
short script like this:
<!--
var temp=window.loc ation.split("?" );
var content=temp[1]
//-->
I am assuming after I clicked the link from the opening page the variable
"content" now contains "sub_contact.ht ml". Am I correct?
How can I use this variable in my iframe tag?
I've tried this:
<iframe name="frame" height="409" width="580" border="0" frameborder="0"
src=content scrolling="no">
but that's obviously wrong since it didn't work.
Can someone please tell me how I can achieve this? I'm very new in web
scripting/programming.
Thanks for the answers so far and any further suggestions would be greatly
appreciated.
Cheers,
Dany.
Comment