Open a local HTML file at a specific anchor in system browser

5 ビュー (過去 30 日間)
Peter Nagy
Peter Nagy 2016 年 2 月 8 日
編集済み: Peter Nagy 2016 年 2 月 8 日
I would like to open a local HTML file at a specific section in the system browser. If I use the following command: web('file:///D:full_path_to_file/help.html#simulation','-browser') the help.html file is opened in the system browser, but the beginning of the page is shown, i.e. the page is not opened at the "simulation" anchor. If I use the command web('file:///D:full_path_to_file/help.html#simulation') help.html is opened in the Matlab browser at the "simulation" anchor.
If I publish the help.html file on a web page and run the command web('http://web_address/help.html#simulation','-browser') the help.html file is opened in the system browser at the "simulation" anchor. So it seems that the page can be opened at a specific anchor in the Matlab browser or in the system browser if the file in online, but is there a way to open a local HTML file at a specific anchor in the system browser? I have looked at the "web" command and I noticed that the "#" anchor tag is intentionally removed due to a known limitation of the FileProtocolHandler, so I would like to find a viable workaround.
  1 件のコメント
Jan
Jan 2016 年 2 月 8 日
Which Matklab version are you using? I've observed this bug in R2009a.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by