Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Semrush - keyword research tool

Create your online store today with Shopify

Turn ChatGPT, Claude, Gemini, And CoPilot Into Your Personal Assistant, Business Coach, Content Creator, And More

AFFILIATE MARKETING Your all-in-one performance engine Manage affiliates, creators, and customer referrals in one unified platform—turning every partnership into measurable growth

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Disclosure: My content contains affiliate links.

43,181 questions

56,073 answers

573 users

How to open new window and specify title,toolbar,scrollbars,resizable,width,height,top,left and add HTML in JavaScript

1 Answer

0 votes
<!DOCTYPE html>
<html>
<body>

<button onclick="OpenAndAdd()">Open And Add</button>

<script>
function OpenAndAdd() {
  var w = window.open("", "Title", "toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=600,height=300,top="+(screen.height-700)+",left="+(screen.width-1000));

  w.document.body.innerHTML = "<h1>Title</h1> <p>Text text text</p>";

}
</script>

</body>
</html>

 



answered Jan 11, 2019 by avibootz

Related questions

1 answer 249 views
1 answer 274 views
274 views asked Nov 16, 2020 by avibootz
2 answers 410 views
1 answer 282 views
...