Click to See Complete Forum and Search --> : automatically open a link in another frame after x seconds


Endlezz
03-10-2003, 08:43 AM
Anyone knows how to get the "target" string in a code
to automatically open a link after x seconds in a certain
frame?
I found free javascipt pop-up codes, but I can't manage to
change them to let a link open in one of the frames of my
website in stead of in a pop-up after a few seconds.

Greetz & thx in advance,

Nick [Endlezz]

gil davis
03-10-2003, 08:54 AM
setTimeout("window.top.frameName.src = 'newURL.htm'", x);

khalidali63
03-10-2003, 08:56 AM
a use setTimeout function to create the delay and in the javascript you can use this format

document.frameName.src="pagetobeopened.html"

Hope this guides you.

Khalid

Endlezz
03-10-2003, 09:04 AM
thanks!


Nick