Topic awaiting preservation: javascript help.. (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Somewhere out there |
posted 05-06-2002 03:01
hi, my html page has an iframe and i would like to have a button on the html page that will increase the font size of the text in the iframe. is that possible? can the javascript be targetted to that iframe? if so, hope you guys can help me out here abit.. thanks a lot! |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 05-06-2002 05:06
maestro: Try this: |
Nervous Wreck (II) Inmate From: Somewhere out there |
posted 05-06-2002 09:37
hi emperor, thanks for the help. i know the script for changing the font size but what if the text that i want the font size changed, is in an iframe? can i use the 'target' within the <a> tag? |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 05-06-2002 13:52
maestro: Well I hate frames and try to avoid them where I can - I'd try changing 'document' in the above code to something like parent.FRAMENAME I believe that should work (if not someone will jump in with the correct solution ). |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 05-07-2002 07:50
Emperor is right, just change document.getElementsByTagName("p") to something like parent.frames["frameName"].document.getElementsByTagName("p") and everything will be fine. |