0

i want to open the link like 'www.foo.com' in an html form (just like a pop up) not in new window. can i achieve this? if yes than how ? on button click action i just want to open a form which will trigger that link and show me that screen instead of opening in new window.

<h1>HI I AM chatBOT</h1>


    <label for="msg"><b>Message</b></label>
    <textarea placeholder="Type message.." name="msg" required></textarea>
    <button type="submit" class="btn">Send</button>

    <input type ="hidden" value=""  id = "linkedPararm" name = "linkedPARAM" onchange="" />     
    <button type="button" class="btn cancel" onclick="closeForm()">Close</button>
    </form>
  • 1
    Does this answer your question? [Open a URL in a new tab (and not a new window)](https://stackoverflow.com/questions/4907843/open-a-url-in-a-new-tab-and-not-a-new-window) – Obsidian Age Dec 04 '19 at 21:05
  • 1
    You mean like a `modal` "window"? – dw_ Dec 04 '19 at 21:12
  • Have you heard of AJAX? https://developer.mozilla.org/en-US/docs/Web/Guide/AJAX – daddygames Dec 04 '19 at 21:15
  • Does this answer your question? [Create modern website that loads content without refresh](https://stackoverflow.com/questions/19763394/create-modern-website-that-loads-content-without-refresh) – Triby Dec 04 '19 at 22:19
  • @ObsidianAge nope i need to open url in a popup like form on button event not in a popup window or new tab – Andronymous Dec 06 '19 at 09:19
  • @dw_ yes something like that but how can i open a url in it ? in that modal window? – Andronymous Dec 06 '19 at 09:21
  • You can try something like this modal: https://micromodal.now.sh/ and then update its contents with an AJAX call. – Triby Dec 06 '19 at 15:28

0 Answers0