Hi guys,
this is my first time here and I'm quite the Javascript noob, but I was just wondering if it was possible to use javascript to have a button pressed on refresh. Here is the page I am trying to use. I have it auto-reloading every "X" seconds using this:
javascript:
timeout=prompt("Set timeout [s]");
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload(){
setTimeout('reload()',1000*timeout);
fr4me='<frameset cols=\'*\'>\n<frame src=\''+current+'\'/>';
fr4me+='</frameset>';
return animator.callEvent('play',this);
with(document){write(fr4me);void(close())};
}
I am trying to trigger the play button on this webpage
http://www.weatheroffice.gc.ca/radar/in ... tml?id=XFT
This is the name of the anchor tag, I'm just not sure how to trigger it.
<a href="#" id="play-button" onclick="return animator.callEvent('play',this);" onmouseover="animator.callEvent('depress',this);" onmouseout="animator.callEvent('uplift',this);"><img src="http://www.weatheroffice.gc.ca/images/animation_buttons/play.gif" alt="Play"></a>
Any help would be greatly appreciated,
Thanks,
Russell


