javascript open new window
window.open("LINK-HERE");<a onclick="window.open(document.URL, '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes');">
Open New Window
</a>var newWin = open('url','windowName','height=300,width=300');
newWin.document.write('html to write...');
<script type="text/javascript">
var windowObjectReference = null; // global variable
function openRequestedPopup(url, windowName) {
if(windowObjectReference == null || windowObjectReference.closed) {
windowObjectReference = window.open(url, windowName,
"resizable,scrollbars,status");
} else {
windowObjectReference.focus();
};
}
</script>
(...)
<p><a
href="http://www.spreadfirefox.com/"
target="PromoteFirefoxWindow"
onclick="openRequestedPopup(this.href, this.target); return false;"
title="This link will create a new window or will re-use an already opened one"
>Promote Firefox adoption</a></p>
Also in JavaScript:
- Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
- how to write html with javascript
- gradle json simple dependency
- vue-sfc-rollup external dependency
- javascript array merge
- sum all fields in nested json logstash
- javascript for
- install node modules
- convert shp to geojson python
- connect nodejs to mariadb
- after load page jquery
- expressjs swagger yaml
- override important css
- js + random number in range without math.floor
- javascript math objects wr3
- js set visibility
- facebook integration in node.js
- deep clone javascript object
- angular router navigate
- i18n react meta description
- sort array by string length javascript
- useHistory react-router-dom
- packages.json from file
- javascript detect touch screen device