HTML / iOS question

I have my IMP powered Bug Zapper all working well other than one slight issue with iOS.

Here is the URL, don’t worry the zapper isn’t plugged in yet !!

http://philspitler.com/bugZapper/

You will see two links, ON and OFF which basically go to these links.

https://agent.electricimp.com/xpfY20KUQTNc?state=1

or

https://agent.electricimp.com/xpfY20KUQTNc?state=0

If you run this in iOS or in a browser it works great and when you click the button, nothing happens visually on the screen.

However, if I make this a webapp on my iPhone, when I launch it from my homescreen and tap one of the options, it launches Safari and shows the confirmation page that I don’t want to see.

If found this article on line

http://stackoverflow.com/questions/2898740/iphone-safari-web-app-opens-links-in-new-window

which shows a workaround but I have no idea how to implement it.

Anybody out there able to help me with my HTML.

cheers.

Phil