iGuest 3 Report post Posted February 14, 2008 You can try this code, Its correct How To Create A Popup Window With Javascript? <HEAD> <!-- STEP TWO: Use the following button code for the new window --> <form> <input type=button value="Popup Window" onClick="javascript:popUp('This area please mention the your Folder or file')"> </form> -Ganesh Share this post Link to post Share on other sites
techyguru007 0 Report post Posted April 1, 2008 Hey I made a tut on youtube.Here's the link: http://forums.xisto.com/no_longer_exists/There's no sound. But it tells you how to make a simple pop-up box. Share this post Link to post Share on other sites
iGuest 3 Report post Posted April 9, 2008 Call javascript from server side How To Create A Popup Window With Javascript? Hello friends, I have one Query in javascript.. I call javascript function server side without any event fire like onblur,mouseover etc. And after the function then return server side.. Please help me this query Regards, Prashant -reply by prashant Share this post Link to post Share on other sites
java-area 0 Report post Posted April 15, 2008 I think the common way to create a popup with JavaScript is using Div elements. You can simply put any Html code into the tag DIV and make this Div unvisible. For example: <body> ...... <DIV id="myTestDiv" style="left:-1000px;top:-1000px;disply:none;position:absolute;'> <table border=1> <tr> <td>Menu Item 1</td> </tr> <tr> <td>Menu Item 2</td> </tr> </table> </DIV> ..... </body> When my popup window (created as Div element) is unvisible, I do not worry about its location on the screen - it does not matter. That's way I put negative values for top and left coordinates. However, before visualing I should move it to appropriated location. It can be done by JavaScript using attribute style. For example, I can move my popup to any absolute location on current page: <script language='javascript'> function moveMyPopup() { var mypopup = document.getElementById('myTestDiv'); mypopup.style.top = '25px'; mypopup.style.left = '100px'; } </script> After moving I can do it visible: pop.style.display = ''; Or hide it again: pop.style.display = 'none'; Share this post Link to post Share on other sites
java-area 0 Report post Posted April 16, 2008 (edited) Comment to my previous message:Div elements are used very often for creating poipup menu on the first (main) page of Web sites.But we have to keep in mind, that different browser have different Javascript systacsis for moving and hiding/showing elements on the screen.Look at documentation attentively! Edited April 16, 2008 by java-area (see edit history) Share this post Link to post Share on other sites
iGuest 3 Report post Posted December 18, 2009 check this simple codeHow To Create A Popup Window With Javascript? Simple Popup window You can use this code, the condition <if(b= =0)> used to break the popup when mouse button is clicked more than once <script type="text/javascript">Var b=0;Function Avinash(){ if(b==0){ window.Open("https://www.google.de/?gfe_rd=cr&ei=7AkjVIatDsKH8QfNkoC4DQ&gws_rd=ssl;); B++;}}</script><body bgcolor="black" onclick="Avinash();" style={"cursor : pointer"}><br><br> <font color=#0099b9 size=5><center>Simple PopUp window</center></font> -reply by Avinash an Assassin Share this post Link to post Share on other sites
iGuest 3 Report post Posted December 23, 2009 (edited) // snipped // Edited December 19, 2016 by OpaQue (see edit history) Share this post Link to post Share on other sites