48 users online (1 members and 47 guests)  


  Results 1 to 3 of 3

Related

  1. Passing value from parent window to child window    Forum: Javascript Forum
    Replies: 0
  2. Replies: 4
  3. Replies: 1
  4. window co-ordinates and form question    Forum: Javascript Forum
    Replies: 5
  1. #1
    scripts's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    10

    Question pop up window from form..

    I have a form and i want it that when someone clicks the button (to submit), the website (URL) in "form action=URL" appears in a customized pop up window instead of in the same window [that takes up the whole screen]. I tried to do this in a bunch of different ways but i haven't got it to work. If anyone can help I'd greatly appreciate it...

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya,
    Here is some code I cooked up a few months ago, it does what you describe.

    It uses code generated by our popup maker tool, should be easily customized.

    HTML Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Thanks to Nic Wolfe  http://fineline.xs.mw -->
    
    <!-- Begin
    function popup(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, 'meta', 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=300,height=300,left = 362,top = 234');");
    }
    // End -->
    </script>
    
    
    
    <form method="post" action="http://www.ahfb2000.com" name="jsform" target="meta" onsubmit="popup('about :blank'); document.jsform.submit();">
    <input type="text" name="badger">
    <input type="button" value="test button" onclick="popup('about :blank'); document.jsform.submit();">
    </form>
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    scripts's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    10
    oh after a lot of searches i just finally figured it out to get it exactly how i want but thankyou for help



Tags for this Thread