new window without menu.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Bedford

    new window without menu.

    I've this form:

    <script>
    function sendMessage(val ue,FormSubmit){
    if (value>0){
    w=window.open(' contactseller.p hp?annID='+ value,'null','r esizable=no,
    location=no, top=200, left=200, width=50, height=50, menubar=no, status=no,
    scrollbars=no, menubar=no');
    }
    }
    </script>


    <form name="contact" action="contact seller.php" method="post"
    target="_blank" >
    <input type="hidden" name="AnnID" value="<?php echo($IDAnnounc e);?>">
    <input type="hidden" name="Informati on" value="<?php echo($info);?>" >
    ...5 fields (text fields).
    <br><center><in put name="SendInfo" type="submit" value="Envoyer" >
    <input name="Sendtest" type="button" value="show"
    onClick=sendMes sage(<?php echo($IDAnnounc e);?>,'Contact' );></center>
    </form>

    Opening the new window (as targer is "_blank) with the "SendInfo" submit
    button, I get the new window with the menubar. How to do it without menubar
    ?? I know I can do with the second button syntax, but they are 2
    incovenients: 1. the infos are in clear text on pointing the mouse on it 2.
    I've to add every single var to the link.

    Thanks for any suggestion.

    I want to avoid the syntax:


  • @SM

    #2
    Re: new window without menu.



    Bob Bedford a ecrit :[color=blue]
    >
    > I've this form:
    >
    > <script>
    > function sendMessage(val ue,FormSubmit){
    > if (value>0){
    > w=window.open(' contactseller.p hp?annID='+ value,'null','r esizable=no,[/color]

    w=window.open(' ','WhatToSee',' width=50,height =50,top=200,lef t=200,scrollbar s=0');
    return true;

    would be suficient
    [color=blue]
    > location=no, top=200, left=200, width=50, height=50, menubar=no, status=no,
    > scrollbars=no, menubar=no');
    > }
    > }
    > </script>
    >
    > <form name="contact" action="contact seller.php" method="post"
    > target="_blank" >[/color]

    target="WhatToS ee" onsubmit=" return sendMessage('', '');">

    contactseller.p hp?AnnId=...&In formation=...
    will be automaticaly sent in the pop-up
    if you add in submit form tag the
    onsubmit="retur n sendMessage();"
    [color=blue]
    > <input type="hidden" name="AnnID" value="<?php echo($IDAnnounc e);?>">
    > <input type="hidden" name="Informati on" value="<?php echo($info);?>" >
    > ..5 fields (text fields).
    > <br><center><in put name="SendInfo" type="submit" value="Envoyer" >
    > <input name="Sendtest" type="button" value="show"
    > onClick=sendMes sage(<?php echo($IDAnnounc e);?>,'Contact' );></center>
    > </form>[/color]


    --
    ******** (enlever/remove [OTER_MOI] du/from reply url) *******
    Stéphane MORIAUX : mailto:stephane OTER_MOImoriaux @wanadoo.fr
    Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)

    *************** *************** *************** *************** **

    Comment

    Working...