php new window popup

Posted on 2010-01-06
Last Modified: 2012-05-08
must open in a new popup window

echo '<input type="submit" name "click" value="click" location"">';
Question by:rgb192
    LVL 82

    Accepted Solution

    echo '<input type="submit" name "click" value="click" onclick=\'"")\'>';
    LVL 11

    Assisted Solution


    Use the function:

    Insert this function in your page:

    <script type="text/javascript">

    var newwindow;

    function popup(url)
,'My PopPup','height=400,width=200');
          if (window.focus) {newwindow.focus()}


    And in your submit button:

    '<input type="submit" name "click" value="click" onclick=\'popup("page.html")\'>';

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now