how do i insert a variable into a inline frame html coding

A

AM

..
..
..
..
<SCRIPT LANGUAGE="Javascript"><!--
// Get today's current date.
var now = new Date();
// Array list of months.
var months = new
Array('january','february','march','april','may','june','july','august','september','october','november','december');
// Join it all together
today = months[now.getMonth()];
//--></SCRIPT>

<iframe name="mainpage" width="778" height="537" src=today+'.htm'
scrolling="no" align="top">
Your browser does not support inline frames or is currently configured not
to display inline frames.</iframe>
..
..
..
..




above is the code i am trying to change, it has a page the opens in a
inline frame.

the iframes........... src=today which is the month that is need to be
displayed but it will not work, as the javascript is not being used at this
point of the htnl code.

how do i insert a variable at this point?

thank you
 
S

Steve Easton

You're trying to concatenate a string value outside of your script which can't be done.
You need to concatenate today+'.htm' inside your script and then "write" the value to the html
line.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
A

AM

ok i have concatenate today+'.htm' inside my script

how do i write it to the html?

src=document.write(toady)

not sure what you mean



Steve Easton said:
You're trying to concatenate a string value outside of your script which
can't be done.
You need to concatenate today+'.htm' inside your script and then "write"
the value to the html
line.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

AM said:
.
.
.
.
<SCRIPT LANGUAGE="Javascript"><!--
// Get today's current date.
var now = new Date();
// Array list of months.
var months = new
Array('january','february','march','april','may','june','july','august','september','october','novem
ber','december');
// Join it all together
today = months[now.getMonth()];
//--></SCRIPT>

<iframe name="mainpage" width="778" height="537" src=today+'.htm'
scrolling="no" align="top">
Your browser does not support inline frames or is currently configured
not
to display inline frames.</iframe>
.
.
.
.




above is the code i am trying to change, it has a page the opens in a
inline frame.

the iframes........... src=today which is the month that is need to be
displayed but it will not work, as the javascript is not being used at
this
point of the htnl code.

how do i insert a variable at this point?

thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top