how to force open new tab / window for javascript?

I want to install supercounter in a page:

< !-- BEGIN: Powered by Supercounters.com -->
<script type="text/javascript" src="http://widget.supercounters.com/online_t.js">
</script>
<script type="text/javascript">sc_online_t(244858,"Users Online","170ddb");</script>
< !-- END: Powered by Supercounters.com -->`

So, how can I open the stats page in a new tab or window, not same window?

Answers


If there's a link that the stat page uses, you could use window.open

window.open(URL,name,specs,replace)

window.open('http://www.URL.com', _blank);

This will open the page in a new window


Need Your Help

How to download a file and and stay in current page in MVC

javascript c# jquery asp.net-mvc

I want that when user clicked on Download button, i check his status and if it is valid, a video file start to download, and user stay in current page.