Quantcast
Channel: Sound Alert on client side on web page
Viewing all articles
Browse latest Browse all 10

Re: JavaScript not working after including Bootstrap CSS on master page

$
0
0

Sometimes this can occur as a race-condition (e.g. the function is not ready by the time it is called). You can avoid this by adding a slight delay to ensure that it is ready by using the setTimeout function : 

ScriptManager.RegisterStartupScript(this, GetType(), "PlaySound", "setTimeout(function(){ PlaySound();},10);", true);


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>