onclick open a new window

Results 1 to 2 of 2

Thread: onclick open a new window

  1. #1
    CKB Guest

    Default onclick open a new window

    I have a form which consists of a textarea box and a &#039Preview&#039 button. Upon clicking on the &#039Preview&#039 button, I want to open a separate browser window which will shows the output of what has been inputted on the previous textarea box. How to code this ?

  2. #2

    Default RE: onclick open a new window

    Hi.<BR>&#060;script language="javascript"&#062;<BR>function openwindow(){<BR>newwin = window.open(pageurl,winname,"left=0,top=0,height=1 00px,width=100px,toolbar=no,menubar=no,location=no ,scrollbars=yes,resizable=no"); <BR>}<BR>&#060;/script&#062;<BR><BR><BR>&#060;input type="button" onclick="openwindow();"&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts