Can I open two websites on one hyperlink?
I want to open tw开发者_如何学Pythono different websites on one hyperlink mean one click.
<SCRIPT LANGUAGE="JavaScript">
function DoubleOpen(site1, site2) {
window.open(site1);
window.location = site2;
}
</SCRIPT>
From here.
<a href="primaryPage.html" onclick="loadSecondary('secondaryPage.html);">Go Here</a>
<script>
function loadSecondary(url) {
window.open(url, '_blank');
return true;
}
</script>
精彩评论