Hi everyone,
I am trying to create a site with pages containing iframes. This is the
first time I've used inline frames and am still struggling with the concept.
This site will have 10 pages and so far I have created 20 files, each page
having to use a pair of files. One file for the actual page, and one file
for the content of the inline frame.
It sounds bloody silly to me but then again I am only a beginner at web
devel. The tag I use for these pages look a bit like this:
<iframe name="frame" height="409" width="580" border="0" frameborder="0"
src="sub_contact.html" scrolling="auto"> Sorry, we're having
problems</iframe>
Is there any way I can use Javascript to detect what button/link has just
been clicked, and assign the appropriate value to the "src" variable? Then
perhaps I can only use one file for the actual page, and 10 files for each
content of the inline frames?
I hope this question makes some sense. I come from a programming background
but never web apps or anything remotely to do with dynamic web pages. Never
touched Javascript either!
Any suggestions or pointers (no puns intended) would be immensely
appreciated.
Cheers,
Dany.