Forum Discussion

jack_10574's avatar
jack_10574
Icon for Nimbostratus rankNimbostratus
Feb 05, 2016

click web site link with require open page in new tab

Hi All

 

Just wonder is that possible when user click the web site link and F5 will assist to open a new tab for new page instead ?

 

Example : when user access to www.test.com and click on the "contact" button link . Then, f5 will assist open a new tab .

 

Please advice If this is doable through IRULE.

 

Thanks Regards Jack

 

1 Reply

  • Hi Jack,

    this would be possible using a STREAM Profile or by using an iRule using the [STREAM::enable], [STREAM::disable] and [STREAM::expression] syntax. Basically you have to change the "contact" button related HTML content so that it instructs the browser to open the link in a new Window/Tab.

    If the original code looks like this...

    Contact

    ... it has to be changed to ...

    Contact

    The STREAM expression would then look like this...

    @www.test.com/contact.html\">@www.test.com/contact.html\" target=\"_blank\">@@

    Note: The HTML code and the expression is just an example. You have to dig into your HTML/JScript code using some browser based debugging tools and find a stable code patch for your site. Once you have identified the required change, you could rewrite the code on the wire using STREAM...

    Cheers, Kai