Tag Archives: cool

View real HTML source of a page

All browsers support “View page source” feature. But what it displays is source of the page as it was originally rendered by the server. In today’s Web 2.0 world page content can change a thousand times after that. Client-side script, user input, AJAX calls can contribute to page update.

But one line of JavaScript code can show you a real up-to date page source. Type following in your browser address bar:

javascript:void prompt('HTML Source',document.documentElement.innerHTML)

Continue reading →

Javascript: Keeping popup window always on top

I was looking for a solution  (that does not involve proprietary modal dialogs) that would allow to open a popup window in JavaScript and keep it “always on top” of the opener, meaning – when user clicks outside of the popup – the popup retakes focus.
Commonly suggested solution:

<body onblur="this.focus()">

didn’t work for me since I have a form in that popup with input fields and the moment user clicks a field, popup itself loses focus, retakes it right away and user is unable to enter any data.
Fortunately I found an ingenious solution by Jim Allen that involves combination of timer-activated focus that in the same time is controlled by form’s input controls. That sounds complicated 🙂 but in fact is just a few lines of code. Check it out!

GLADINET: Cloud storage on your desktop

Gladinet released a very cool Windows client that allows you to mount online storage spaces from different providers (like Amazon, Google, Microsoft) as an ordinary desktop drive.

I tried it with Microsoft’s own SkyDrive (did I mention that they offer 25Gb of storage space for free?)

and it works like magic.

Now who couldn’t use 25Gb of storage space always available from anywhere in the world?