Click to See Complete Forum and Search --> : Script Request


lmccord2
05-10-2003, 03:25 PM
Hello,

Once again I need help (whats new) lol. I need a script that'll take the user to a page (on another site), pop up an alert window, then after the page loads go to a different page on a different site, pop up an alert window, then after THAT page loads go to a different page on a different site, pop up an alert window.

For the "when the page loads", you could just have it so it waits 3 seconds (that should be enough time for it to load) then go on to the alert box.

Thanks!

lmccord2
05-10-2003, 09:52 PM
'up'

lmccord2
05-11-2003, 12:54 PM
lol, auctually I'm just doing it for my own testing. Then what would the script be for changing those framesets?

Thanks!

lmccord2
05-12-2003, 11:53 AM
'up' again (lol, it was on the 3rd page)

Jona
05-12-2003, 12:14 PM
OK, you'd have to use
var site = top.rightFrame.src;
top.rightFrameName.onload=alert("We have loaded page "+site+".");

Put in in a function, e.g., "shootFrame()":

<a href="http://SomeSite.org/" onClick="javascript:shootFrame();" target="rightFrame">Shoot the frame! :P</a>

(Make sure that "Javascript" above is in lower-case and has no spaces.)