I have a small piece of javascript that I would like to use but need a delay before it's activated.
function sglClick(url) {
window.setTimeout('location.href="http://'"+url",1500);
}
This is not working and I'm really stuck here. Wish I knew a bit more javascript. Can someone please help?
Thanks
Here is what I now have
function send(){
}
function sglClick(url) {
// window.location.href="http://"+url;
setTimeout(function send() { location.href = "http://" + url; },1500);
}