Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

form open a new window

creativeplatypcreativeplatyp Member Posts: 4
what am i doing wrong. I would like to open a new window when clicking on a buy button on a form. this is the form code i am using

>location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,
resizable=yes')"> >










On the page from where i call the form i have the following code

function newWindow()
{
shopWindow = window.open('http://www.bonjourparis.com/pages/test.php' , 'shopWin', width=330, heigth=250')
}


the page from where i try to call the script is http://www.bonjourparis.com/pages/deborah.php

can anybody help me how i can make this work?

Thank you in advance

Andrea

Comments

  • bhekisizwebhekisizwe Member Posts: 22
    : what am i doing wrong. I would like to open a new window when clicking on a buy button on a form. this is the form code i am using
    :
    : >: location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,
    : resizable=yes')"> >
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    : On the page from where i call the form i have the following code
    :
    : function newWindow()
    : {
    : shopWindow = window.open('http://www.bonjourparis.com/pages/test.php' , 'shopWin', width=330, heigth=250')
    : }
    :
    :
    : the page from where i try to call the script is http://www.bonjourparis.com/pages/deborah.php
    :
    : can anybody help me how i can make this work?
    :
    : Thank you in advance
    :
    : Andrea
    :
    hi there

    I think the error you made was putting the onClick as the form attribute
    .I think you can try to use the following code:


    function newWindow()
    {
    window.open('http://www.bonjourparis.com/pages/test.php','shopWin','width=250,height=250,scrollbars=yes,toolbar=yes');
    }


    and please do not try to invoke the function within the tag
    but use the tag instead.


Sign In or Register to comment.