Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Step one. Find your HTML page with links on it.
- Step two. Copy this code:
- <javascript>function boom(url) {
- var win = window.open(url, '_blank');
- win.focus();
- }
- </javascript>
- And paste it into your code near the very top, directly AFTER the <head> tag. If your code has no head tag, place one inside your <html> tag but above your <body> tag and then paste the above code there. Any questions let me know.
- Step three. Find you link code, it should look something like this:
- <a href="myurl">my link</a>
- Step four. Replace your full link code (including the <a> tag) with this code:
- <div onclick="boom('myurl');">my link</div>
- And just like that you have reduced the workload of users by 50% at least, sometimes a lot more for mobile users.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement