Author Topic: SOLVED: How to open webpage in a browser from an EA JavaScript  (Read 4678 times)

Svend Erik Nygaard

  • EA User
  • **
  • Posts: 131
  • Karma: +2/-2
  • Business Information Architect
    • View Profile
SOLVED: How to open webpage in a browser from an EA JavaScript
« on: December 23, 2018, 02:12:30 am »
How do I open webpage in a browser from an EA JScript.
E.g. I want to add a script to an element's context menu that opens a webpage with specialized documentation views on that element.
« Last Edit: January 04, 2019, 05:35:07 am by Svend Erik Nygaard »

Arshad

  • EA User
  • **
  • Posts: 286
  • Karma: +20/-1
    • View Profile
Re: How to open webpage in a browser from an EA JavaScript
« Reply #1 on: December 23, 2018, 03:15:22 am »
How do I open webpage in a browser from an EA JScript.

Hi

Below snippet is used to open webpage in EA Script.

Code: [Select]
var page= new ActiveXObject("WScript.Shell");
      page.run("www.google.com");

Arshad

Svend Erik Nygaard

  • EA User
  • **
  • Posts: 131
  • Karma: +2/-2
  • Business Information Architect
    • View Profile
Re: How to open webpage in a browser from an EA JavaScript
« Reply #2 on: December 28, 2018, 06:16:37 am »
Great.
Thanks a lot, Arshad.
I'll try that as the first thing in the new year (I hope :))

Arshad

  • EA User
  • **
  • Posts: 286
  • Karma: +20/-1
    • View Profile
Re: How to open webpage in a browser from an EA JavaScript
« Reply #3 on: December 28, 2018, 03:19:48 pm »
Hi Svend

Cool :)

Svend Erik Nygaard

  • EA User
  • **
  • Posts: 131
  • Karma: +2/-2
  • Business Information Architect
    • View Profile
Re: How to open webpage in a browser from an EA JavaScript
« Reply #4 on: January 04, 2019, 05:34:38 am »
Yep, it works fine - thanks again :-)