MozillaZine

JavaScript Bookmarklet, Multiple Functions, Timer

User Help for Mozilla Firefox
fireundubh
 
Posts: 9
Joined: November 11th, 2005, 6:06 am

Post Posted April 25th, 2008, 9:58 pm

I can't figure out why this script isn't working as a Firefox Bookmarklet.

Code: Select all
javascript:

function goTest { alert("Testing..."); timedCount(); }

function timedCount() { t=setTimeout("goTest()",5000); } timedCount();

The script is supposed to execute the alert function and then repeat the alert function every 5 seconds, but it doesn't work at all.

7842.9
 
Posts: 25
Joined: April 23rd, 2008, 3:04 pm

Post Posted April 25th, 2008, 11:43 pm

You forgot the parentheses after goTest ;)

fireundubh
 
Posts: 9
Joined: November 11th, 2005, 6:06 am

Post Posted April 26th, 2008, 12:35 am

I'm such a doofus. Thanks for pointing that out. :)

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 8 guests