<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hi,<br><br>A workaround(not the best solution) could be to check/parse on "event.text". If that doesn't contain your required info, you may avoid adding popup to the map.<br><br>-Ravi.<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> maw269 &lt;maw269@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> users@openlayers.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, April 7, 2011 9:30:53 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [OpenLayers-Users] Re: Popups appear on every click?<br></font><br>I don't think it is that. Here is my WMS
 layer<br><br><br>PostCodes = new OpenLayers.Layer.WMS("UK Post Codes",<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "<a href="http://domain/geoserver/wms" target="_blank">http://domain/geoserver/wms</a>",<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; layers: 'WebCOP:PostCodes',<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; transparent: true}, {'buffer':1, visibility: true}<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; );<br><br>--<br>View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Popups-appear-on-every-click-tp6247348p6250033.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Popups-appear-on-every-click-tp6247348p6250033.html</a><br>Sent from the OpenLayers Users
 mailing list archive at Nabble.com.<br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br></div></div>
</div></body></html>