WebPage.Show(innewwindow) ??

dim x as myWebPage
x.show(true)

Too many arguments: got 1, expected only 0

According to the documentation true means show page in new window.
What have I done wrong now?

From the documentation page for WebPage.Show:

All browsers today come with the popup blocker on by default.

If you want to show a new window, your best bet is to use a link with the option Target. Since the action is initiate by the user, the window shows even with the popup blocker on.

You know my dev environment help told me that there was a parameter.
‘option Target’?

Weblink has an option “Target” where you can specify a new window. That will open a new window when you click on it with the URL you specify. It is in the IDE.

Note that if you point to your own application in the new window, it will in fact create a new session.

That option doesn’t exist anymore. I faced the same problem before, and finally I embed the page in a HTMLViewer.

The option for a link is here alright, and it works perfectly. It will open in a new tab in modern browsers.

Here is the code to suppress the underline, if you want to suppress the blue underline :

Sub Shown() Handles Shown dim s as string s = s + "L = document.getElementById('"+me.controlID+"').getElementsByTagName('a')[0];" s = s + "L.style.textDecoration='none';" me.ExecuteJavaScript(s) End Sub