using vaiables created in one frames, in another frame

G

Guest

I have variables within a JavaScript and want to use the data in them in
another frame.

how is this possible?

thank you
 
S

Steve Easton

Make them "Global" variables instead of declaring them as part of a function.

<script>
myvar = thisIsaGlobalVariable;
function myfunction(){
thisvar = isnotaglobalvariable;
}
<script>

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

Guest

can I create .js ? files to store my scripts in as there are loads, how
do I get them to work in all pages.

cheers
 
G

Guest

my page has frames and one of them has a form with drop down boxes, the
details of which i need put in to another frame, not really in any order as
long as there are in the other frame.

i have created .js files and stored them in the same folder as the page
it is needed in and added them to the pages that it is need in, at the point
their are needed like this...

<script language="JavaScript" src=myscript1.js></script>

but the scripts are not being called and doing what it should??

what could i be doing wrong.

cheers
 

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