View Full Version : replace word from frame
arctushar
07-31-2010, 02:22 AM
Hello everybody
I have two frame in one page. say frame1 & frame2. Now I want to replace <body> to <body bgcolor="#FFFFFF"> in frame2. Is it possible?
if possible then please help me
RandomUser531
07-31-2010, 04:00 AM
Hello everybody
I have two frame in one page. say frame1 & frame2. Now I want to replace <body> to <body bgcolor="#FFFFFF"> in frame2. Is it possible?
if possible then please help me
There's no point changing the actual markup. If the target frame is named 'frame2' try:
parent.frames.frame2.document.body.style.backgroundColor = "#fff";
arctushar
07-31-2010, 04:47 AM
thank u Phil Ippem
Actually I want to replace <body> to <body ondblclick="udf()">
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.