skibascott
IS-IT--Management
Is it possible to pass arguments when using setTimeout? If so , what is the syntax?
Code:
setTimeout("ShellReader(openps)",5000);
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
setTimeout("ShellReader(openps)",5000);
setTimeout("ShellReader([COLOR=red][b]'[/b][/color]" + openps + "[COLOR=red][b]'[/b][/color])",5000);
<script language="javascript">
var theString = "hello, my name is kaht";
function blah(str) {
alert(str);
}
window.setTimeout("blah('" + theString + "')", 5000);
</script>
setTimeout("ShellReader('" + openps.replace(/\\/g, "\\\\") + "')",5000);