javascript - Open Modal Web Page from another web page -



javascript - Open Modal Web Page from another web page -

i creating form in php file. in form have link. on clicking link want open web page or php page modal window.

below form in test1.php want create.

<form action="test.php" name="form" method="post"> <a href="#" onclick="window.open('test.php','popup','scrollbars=1,width=620,height=620,top=50,left=200')" title="listbox" class="toplinks1">open link</a> <input type=submit name="submit" /> </form>

above form has link "open link" open test.php in window. can access test1.php while test.php open.

i need open test.php modal window.

am using next method open external file in same page

<body> <p class="flaticon-right127"><a class="reveal" href="mobilepost.php">mobile&nbsp;phones</a> <p class="flaticon-right127"><a class="reveal" href="tablet.html">tablets</a></p> <p class="flaticon-right127"><a class="reveal" href="accessories.html">mobile&nbsp;accessories</a></p> <div class="page"> // external file load in area </div> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('.reveal').on('click', function(e){ e.preventdefault(); var link = $(this).attr('href'); $('.page').load(link); $('.reveal').hide(); $(this).show(); }); }); </script> </body>

javascript php html modal-dialog

Comments

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -