html - How to start a link when entering page? -


i have link on web page:

<a id="demo03" href="#modal-03">demo03</a>

how can make link run automatically, when enter page?

hope can me!

thanks :-)

try this

<html>     <head></head>     <body>         <a id="demo03" href="#modal-03">demo03</a>         <script type="text/javascript">             (function() {                 var link = document.getelementbyid('demo03');                 link.click();             })();         </script>     </body> </html> 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -