javascript - How to open a webpage in html without clicking a link/button -
before start new html , have limited programming experience i doing school project , need understand how this. have looked everywhere couldn't seem find answers came here.
i need know how html script open new webpage without external inputs (such pressing link). below few of simple things have tried open google using html.
this can done with:
window.location.href = "[url_here]"; no click event required, run line of code when want change url.
Comments
Post a Comment