# Retarget applet

**URL:** <https://forum.inductiveautomation.com/t/retarget-applet/9903>\
**Category:** Ignition\
**Created:** [April 10, 2015, 9:03am UTC](https://forum.inductiveautomation.com/t/retarget-applet/9903 "2015-04-10T09:03:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidWisely](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davidwisely/32/10482_2.png) [@DavidWisely](https://forum.inductiveautomation.com/u/DavidWisely)\
**Post date:** [April 10, 2015, 9:03am UTC](https://forum.inductiveautomation.com/t/retarget-applet/9903/1 "2015-04-10T09:03:31Z")

</div>

I’m trying to use a button to open a different ignition project that is run in a web page.

I’ve created an html webpage to host project 1 applet.  
I’ve also created an html webpage to host project 2 applet.

The reason for the html pages is to make the applet size dynamic and resize to the actual size of the browser window. This works well.

The problem I now have is that I want to open one project from the other. I can do this using the system.util.retarget() command, but it opens the destination project in it’s default applet page which isn’t dynamic.

This works but is the wrong page:  
system.util.retarget(“Project2”,“192.168.1.1:8088/main”)

This doesn’t work:  
system.util.retarget(“Project2”,“192.168.1.1/Project2.html”)  
The error I get is this:  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/93a3624f7e14be3ac964a5fe54615df58c56f2d3.jpg)

Does anyone know of a way to open the destination Project in a custom html page?

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![DavidWisely](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davidwisely/32/10482_2.png) [@DavidWisely](https://forum.inductiveautomation.com/u/DavidWisely)\
**Post date:** [April 10, 2015, 9:14am UTC](https://forum.inductiveautomation.com/t/retarget-applet/9903/2 "2015-04-10T09:14:16Z")

</div>

Ok, I can answer my own questions.

Instead of using system.util.retarget() I’ve now used this and it works well:  
system.net.openURL(“192.168.1.1/Project2.html”)

Cheers,  
David
