Opening popup windows in HTML

I am working with web apps, and I am wondering if there is a way to open a link in an app-type window using HTML? Something like this:

<a href="link" target="_app">My App</a>

Answers


Something like this?

<a href="#" onClick="MyWindow=window.open('http://www.google.com','MyWindow','width=600,height=300'); return false;">Click Here</a>

HTML alone does not support this. You need to use some JS.

And also consider nowadays people use popup blocker in browsers.

<a href="javascript:window.open('document.aspx','mypopuptitle','width=600,height=400')">open popup</a>

I feel like this is the simplest way. (Feel free to change the width and height values).

<a href="http://www.google.com" 
target="popup" 
onclick="window.open('http://www.google.com','popup','width=600,height=600'); return false;">
Link Text goes here...
</a>

Need Your Help

using SimpleXML, how to ignore xml elements I don't have in my object class when deserializing

android simple-framework

I'm using SimpleXml on Android to deserialize an xml which I have no control over. Now, every time the xml changes, it brakes my app because I don't have the new element defined in my object class....

Node.js POST causes [Error: socket hang up] code: 'ECONNRESET'

javascript node.js express

I created a sample to post data to a rest services and I found out that when I have non-ascii or non-latin character (please see data.firstName), my post request using TEST-REST.js will throw