Introduction:-
Here I will show you how to open one, two, three, four etc... links with one click!
Let's Code:-
Make this code between the HEAD tags:-
and this into the BODY tags:-Code:<script language="javascript"> function OpenAllLinks() { window.open("http://www.site1.com") window.open("http://www.site2.com") window.open("http://www.site3.com") window.open("http://www.site4.com") window.open("http://www.site5.com") window.open("http://www.site6.com") } </script>
Explanation:-Code:<a href="javascript:OpenAllLinks()">Open the links</a>
Here you can include all your links!Code:function OpenAllLinks() { window.open("http://www.site1.com") window.open("http://www.site2.com") window.open("http://www.site3.com") window.open("http://www.site4.com") window.open("http://www.site5.com") window.open("http://www.site6.com") }
Conclusion:-
Source code is attached, and feedback welcome


LinkBack URL
About LinkBacks





Reply With Quote


good job




Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum