One issue I came across while doing one of my projects was to hide the scrollbars of a popup window. Yeah, sure, it is easy if you add the attribute scrollbars=no inside the window.open()‘s window attributes. But what if you wish to hide them when the popup window is already open. Thank you CSS! Yes, it is possible by using Javascript and accessing the window style’s property overflow. However, there is a cross-browser issue. Both IE and Firefox/Google Chrome have different codes that make this work. You can place both their codes in the same page and/or Javascript function. If the browser does not understand the property, it will ignore it anyway so there is no need to do a browser check to execute the code specific to that certain browser.

The code below does the trick

Just in case you wish to disable either just the horizontal or vertical scrollbar, this code works for non IE browsers

I pretty much was at a deadend when I searched in the net how to call an anchor that looks like this

using Javascript.

Normally, common HTML pages provide an anchor link, that when clicked, will hover the browser position to where that anchor name is placed in the HTML page. But what if you want to use Javascript to do that. You use this code to do that

After reading this article about Jerry Yang stepping down as CEO of Yahoo, I was not surprised at all. He may have his reasons for not accepting Microsoft’s offer to buy Yahoo at a certain amount per share but a lot of investors were pissed that he did not accept it. The news said that there is no candidate yet to succeed him although they are looking at a few of their board members. Microsoft was expected to renegotiate with Yahoo still but so far there has still been no news about it. They probably might after a new CEO is named for Yahoo. Hmm …

Related Posts Plugin for WordPress, Blogger...