Popup window in Java Script

Results 1 to 2 of 2

Thread: Popup window in Java Script

  1. #1
    Join Date
    Dec 1969

    Default Popup window in Java Script

    Can somebody please help? I need to add a popup window on an existing web page through a button and seem to be having problems. i.e I want the user to access the Terms and conditions of the site by clicking a button on the page and for a popup window to appear. Hope somebody can help??

  2. #2
    Join Date
    Dec 1969

    Default RE: Popup window in Java Script

    This works for me:<BR><BR>&#060;script language="JavaScript"&#062;<BR>&#060;!--<BR>function displaywindow(url, width, height)<BR>{<BR> var win = window.open(url, "displaywindow", &#039;width=&#039; + width + &#039;,height=&#039; + height + &#039;,resizable=0, scrollbars=yes, menubar=no, status=no&#039; );<BR><BR>}<BR>//--&#062;<BR>&#060;/script&#062;<BR><BR>&#060;input type="button" name="button8" value="Edit" onClick="displaywindow(&#039;Test.asp&#039;, 450, 350);"&#062;<BR><BR>There are many other ways to do this, and you can set the attributes however you want. This functionality is in any JavaScript reference. Good luck

Posting Permissions

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