麥克斯做個不宅的工程師

Maxi’s idiotic programming.

Javascript little technique in browser url

You can run a little piece of javascript code on a webpage.
Type “javascript:” and the follow by your javascript code in the url space.
Then you code snippet will run and return the value on the browser.

I use this to call getCenter() when using google map to figure out where I am now.

June 16, 2009 , Tuesday - Posted by maxi326 | Programming | , | No Comments Yet

No comments yet.

Leave a comment

You must be logged in to post a comment.