javascript help
- Started
- Last post
- 6 Responses
- yott
anyone know how do i make two events happen at the same time? i need 2 iframes to change on 1 click.
- unknown0
honestly ... it's pretty easy
for example :
I just made about 15 operations on one event ... in this case an "OnLoad" event.
If you want more help send me an e-mail on post up an sample page with the prob ur having.
Good luck ... see you ...
- unknown0
Or are yoy thinking of 2 "Links" on one item?
thsats not javascript ... thats html ... anyways I doubt thats possible ... but if u use JS to control the content of ur iframes ... there should nt be any probs.
otherwise in a fancy way ... although it's far fetched ... you could call up 1 page in an iframe when the user clicks ... then have on that page ... an onload event or something in those lines ... im not sure but I think u can do stuff in the META header ... but i'm really not sure ... then loading that page u call the other page to the other iframe ... although this becomes very "hardcoded" which is generally not good ... it might be in certain situations.. ..
ok ... good luck ..
- yott0
didn't really understand your answer. what i need is for one click to chnge 2 links in 2 different iframes. is that doable in javascript?
- Pixelgraft0
Yes, I think it is...
a href="javascript:myFunction();"
inside myFunction, set the location.href property of both iFrames to what you want.
Wouldn't that work..? I would check but I need sleep...
- yott0
thnx all, what i did is pretty much like what you said: