Learn how to Activate a Popup JavaScript window

In this code sample, you will learn how to show a popup window using JavaScript

<pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #0000ff">&lt;</span><span style="color: #800000">html</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">head</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">script</span> <span style="color: #ff0000">language</span> = <span style="color: #0000ff">&quot;javascript&quot;</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">function</span> Open(page) {
openwindow = <span style="color: #0000ff">this</span>.<span style="color: #0000ff">open</span>(page, &quot;<span style="color: #8b0000">newWindow</span>&quot;, &quot;<span style="color: #8b0000">menubar = yes, 
</span>
<span style="color: #0000ff">scrollbars</span> = yes, resizable = 1, width = 650, height = 500&quot;<span style="color: #8b0000">);
</span>
}
<span style="color: #0000ff">&lt;/</span><span style="color: #800000">script</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;/</span><span style="color: #800000">head</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">body</span><span style="color: #0000ff">&gt;</span>
<span style="color: #0000ff">&lt;</span><span style="color: #800000">a</span> <span style="color: #ff0000">href</span> = <span style="color: #0000ff">&quot;javascript:Open(&quot;</span><span style="color: #ff0000">http</span>://<span style="color: #ff0000">www</span>.<span style="color: #ff0000">learnxpress</span>.<span style="color: #ff0000">com</span>&quot;);&gt;<span style="color: #ff0000">Visit</span> <span style="color: #ff0000">Learnxpress</span>.<span style="color: #ff0000">com</span>&lt;/<span style="color: #ff0000">a</span>&gt;
&lt;/<span style="color: #ff0000">body</span>&gt;&lt;/<span style="color: #ff0000">html</span><span style="color: #0000ff">&gt;</span>



READ  Learn how to work with Images and Links in HTML

One Response to "Learn how to Activate a Popup JavaScript window"

  1. Wordpress platforms theme   October 9, 2014 at 3:47 am

    Great goods from you, man. I have understand your stuff previous to
    and you’re just extremely fantastic. I really like whqt you’ve acquired here, certainly like what you’re saying annd
    the way in which you say it. You maje it enjoyable and you still
    care for to keep it smart. I can not wait to read much more from you.
    This is actually a terrific site.

    Reply

Leave a Reply

Your email address will not be published.