Browser Script “on the fly”
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!
2 comments May 20th, 2008