Browser Script “on the fly”

May 20th, 2008

Top tip today from Neel over at Siebel Unleashed: using the IE address bar to enter browser script.

I’ve never thought of this, and the key point is worth repeating: script entered into the address bar after a javascript tag is executed by the browser, in exactly the same way as browser script. This means that if you edit the address to be:

javascript:alert(theApplication().GetProfileAttr("Me.First Name"));

…then the browser will popup a message box with the value of the First Name attribute – exactly as you’d expect if this statement was in browser script. Much faster than navigating to Administration – Personalization > Test, plus it retains current context.

Nice quick-and-dirty hack to check (or set) the value of browser objects. Good work, Neel!

Entry Filed under: Configuration,Scripting,Siebel


  • 1. Gavin  |  June 7th, 2008 at 4:04 am

    That tip was just in time to debug some funky browser script that relied on setting profile attributes. Our test env is fine, but prod wasn’t. Knowing that the attributes were blank make a lot of sense.

    Boy, i hate browser script. It should be banned outright as it makes debugging just an evil process.

  • 2. Andrew  |  June 10th, 2008 at 11:44 pm

    This is, by far, one of the most useful debugging hacks ever.

    Although I have yet to use it in the field, the benefits are obvious.


  • 3. vamshi  |  April 2nd, 2009 at 5:38 am

    Hi Gurus,

    I’m trying to open a File Dialog box using a button in Siebel Field Service.

    Can you please provide me some solution using scripting,as I’m new to scripting.


  • 4. Gurus  |  April 8th, 2009 at 10:17 pm

    Hi Vamshi,

    Look in metalink, u’ll find a SR where they explain how you can add DirectX stuff in webtemplate to have the “open file” dialog box.

    This is easy, but having the file going from your local machine to Siebel filesystem is much more complex, if not impossible.

    Rather use the “Attachment” BussComps which is an easier way.


  • 5. Tejeshwer  |  July 25th, 2009 at 3:12 pm

    You can also write the whole script in address bar and even update the applet level read only fields!

    I have uploaded some scripts for quick use.

  • 6.  |  March 20th, 2011 at 3:02 pm

    Browser script on the fly.. Dandy :)

  • 7. RC  |  July 19th, 2011 at 7:12 pm

    A quick FYI that this has been removed in a patch between and (It is a security issue I guess)


May 2008
« Apr   Aug »

Most Recent Posts