JS – BOM – Browser Object Model – Window Open
Method: window.open()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- Use a form to open window -->
<form>
<input type=button value= "Close Window" onClick= "javascript:window.open();" >
</form>
<!-- Use a link to open window -->
<a href= "javascript:window.open();" >Click to Close Window</a>
</body>
</html>
|
My official WebSite >
Copyright notice: any total or partial reproduction of the content is forbidden without previous authorisation by the Author. Copyright ©2013-2025, all rights reserved.
Share This Story, Choose Your Platform!
Hi! I am Andrea Tonin, I am the CEO of "Luce Digitale". I can develop for you Videogames, Web Sites, 3D Hi Res Animations. Contact Me for a Free Quote!
My LinkedIn: http://www.linkedin.com/pub/andrea-tonin/50/632/396