Trick: You can open multiple links by single clicking the <a> tag (defines an anchor) using javascript code inside HTML. It is very simple. just include onclick() function and write inline javascript in its attribute.
Check this HTML code:
HTML Code:
Output of the Code:
Note: (To work this trick) the code should be in the same line without any line break ...
Exaplaination: onclick( ) : It is a function which runs when the link is clicked
window.open() : It is a function which opens another window with the given url
No comments:
Post a Comment