I'm trying to open an HTML file with OpenURL, which works good.
But now I want the HTML file to jump to a certain anchor, using the hash character.
For instance this:
OpenURL("data\helpfile.html#tutorial")
It opens the html file, but the part from the hash character is missing.
I've tried using Driver.OpenURL directly, but with no success.
Is there something else I could try ?
Edit: I found this for a workaround:
It works, but I would still like to know what causes this problem, and if there is a better way to deal with it.
But now I want the HTML file to jump to a certain anchor, using the hash character.
For instance this:
OpenURL("data\helpfile.html#tutorial")
It opens the html file, but the part from the hash character is missing.
I've tried using Driver.OpenURL directly, but with no success.
Is there something else I could try ?
Edit: I found this for a workaround:
Function OpenHelp( section$ ) ff = WriteFile("data\openhelp.htm") WriteLine ff, "<HTML>" WriteLine ff, "<BODY>" WriteLine ff, "<META HTTP-EQUIV=" + Chr$(34) + "Refresh" + Chr$(34) + " CONTENT=" + Chr$(34) + "0; URL=help.htm#" + Lower$(section$) + Chr$(34) + " >" WriteLine ff, "</BODY>" CloseFile ff OpenURL( "data\openhelp.htm" ) End Function
It works, but I would still like to know what causes this problem, and if there is a better way to deal with it.