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

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -