Difference between screen.availHeight and window.height()

window.outerHeight It’s the height of the window on screen, it includes the page and all the visible browser’s bars (location, status, bookmarks, window title, borders, …). This not the same as jQuery’s $(window).outerHeight(). window.innerHeight or $(window).height() It’s the height of the viewport that shows the website, just the content, no browser’s bars. document.body.clientHeight or $(document).height() … Read more

What parameters are required to create an “Add to Google Calendar” link?

Explanation about the available parameters: anchor address: http://www.google.com/calendar/event? This is the base of the address before the parameters below. action: action=TEMPLATE A default required parameter. src: Example: src=default%40gmail.com Format: src=text This is not covered by Google help but is an optional parameter in order to add an event to a shared calendar rather than a … Read more

“Access is denied” JavaScript error when trying to access the document object of a programmatically-created (IE-only)

if the document.domain property is set in the parent page, Internet Explorer gives me an “Access is denied” Sigh. Yeah, it’s an IE issue (bug? difficult to say as there is no documented standard for this kind of unpleasantness). When you create a srcless iframe it receives a document.domain from the parent document’s location.host instead … Read more

Make all opened document tabs visible

One of the built-in option to do so: use pinned tabs. http://dailydotnettips.com/2016/01/21/persevering-and-separating-the-pinned-tabs-in-visual-studio/ If you don’t want to read a external page just for setting: Tools -> Options -> Environment -> Tabs and Windows -> Show pinned tabs in a seperate row It’s not completely what you want, but it’s free and may be useful.

Can’t access cookies from document.cookie in JS, but browser shows cookies exist

You are most likely dealing with httponly cookies. httponly is a flag you can set on cookies meaning they can not be accessed by JavaScript. This is to prevent malicious scripts stealing cookies with sensitive data or even entire sessions. So you either have to disable the httponly flag or you need to find another … Read more