3

I recently came across a JavaScript file in our source tree with lots of calls like

window.external.getParameter()
window.external.createGUID()
window.external.readStringFromRegistry()

and so on and I'm really confused about it.

Are these somehow native calls to the Windows API? And where can I find more information about all the available window.external namespace functions?

katspaugh
  • 17,449
  • 11
  • 66
  • 103
samoz
  • 56,849
  • 55
  • 141
  • 195

2 Answers2

7

Have a look here... http://msdn.microsoft.com/en-us/library/ie/ms535246(v=vs.85).aspx for info. I presume your site uses .NET?

Perhaps this will help too (possible duplicate): What is the use of window.external?

Community
  • 1
  • 1
Mike Sav
  • 14,805
  • 31
  • 98
  • 143
  • I found that too, but it doesn't have the methods in it that the OP describes. (Well, it might, but they're not documented on that page.) – Pointy Jul 23 '12 at 19:06
  • 1
    @Pointy, [the community additions](http://msdn.microsoft.com/en-us/library/ie/ms535246(v=vs.85).aspx#CommunityContentHeader) say the methods can be defined by the external environment. – katspaugh Jul 23 '12 at 19:09
  • Upvoted! Thanks for this saving me some time here! That's the correct answer! As a best practice it might be be better to include the actual content/answer, since content on the links might change. ;) – Urasquirrel Feb 09 '19 at 22:31
2

Have a look here: http://help.dottoro.com/ljisswge.php. It is (in IE) a reference to the 'external' object (you don't say) or (in Firefox) to the 'sidebar' object.

11684
  • 7,356
  • 12
  • 48
  • 71