How to open a popup window in javascript using onclick? -


how can display popup below using onclick method in javascript button?

 <div data-role="popup" id="mypopupdialog4">     <a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn ui-icon-delete ui-btn-icon-notext ui-btn-right">close</a>      <div data-role="header">        <h4>post update </h4>     </div>      <div data-role="main" class="ui-content">              <pre><b>              <div id="resultdayofweek"></div>              <div id="resultnum"></div>              <div id="resultdir"></div>              <div id="resultstop"></div>              <div id="resulttime"></div>                   </b>               </pre>     <fieldset data-role="controlgroup">         <legend>choose status</legend>         <label for="arrived/left">arrived/left</label>        <input type="radio" name="status" id="arrived/left" value="arrived/left">        <label for="delayed">delayed</label>        <input type="radio" name="status" id="delayed" value="delayed">          <label for="canceled">canceled</label>        <input type="radio" name="status" id="canceled" value="canceled">        <label for="getupdate">getupdate others</label>        <input type="radio" name="status" id="getupdate" value="getupdate">        <label for="other">other</label>        <input type="radio" name="status" id="other" value="other">        </fieldset>         <textarea name="addinfo" id="info"> comments goes here.... </textarea>        <input type="submit"  value="submit" onclick="postsubmit();">          <div id="poststatus"></div>        </div>        <div data-role="footer" >        <h1>footer text</h1>     </div>   </div> 

just use window.open:

var referencetonewwindow = window.open(url, name, features); 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -