You are here: irt.org | BBS | Re: Variable as frame source. [This BBS is closed]
Posted by Jason Nugent on August 23, 1998 at 12:27:19:
In Reply to: Variable as frame source. posted by Dan Hart on August 23, 1998 at 10:34:19:
: It is possible to use a variable as the source of frame when loading it. What I want to do is load a frame who source is partially a variable entered by some one visiting the site. I would like to possibly open 4 at once. So I do not want to use separate windows. Thank You for your help
Sure... all you need is the variable once it has been received from the dialog box. Lets assume it is stored in a variable called 'choice'.
document.myFrame1.location = eval (choice + "1.html");
document.myFrame2.location = eval (choice + "2.html");
and so on.. open as many as you want.
Give it a shot and let us know how it went.
Jason
Follow-ups:
You are here: irt.org | BBS | Re: Variable as frame source. [This BBS is closed]