html - How can I create a button and after that append a link at it? -
i want create button on page, have wait few seconds variables "latitude" , "longitude" execute (it in previous function ), i'm trying create button when page loads , after while add together link. know how create function apear leater dont becouse button too. thanks
settimeout(function(){ document.write('<a href="https://maps.google.com/maps?saddr=' + latitude + ',' + longitude + '&daddr=42.80755,-1.66009&z=14&output=embed" data-role="button" data-mini="true">open map</a>'); }, 100);
html function button hyperlink settimeout
No comments:
Post a Comment