I'm attempting to launch opera from the command line and have it redirect to a page after 30 seconds. Here's what I currently have:
C:\Programme\Opera\opera.exe -newpage javascript:function%20func1(){window.location.href='http://localhost/';}setTimeout('func1()',30000);
However, instead of redirecting as expected, the page just displays the number "1" and func1 is never executed. Is there a more effective way to achieve this inline, or should I consider creating a separate page with this functionality?