Skip to content
Advertisement

Tag: html

How do I hide the address bar on iPhone?

How do I hide the address bar on iPhone? I tried two different methods so far: The scroll down one pixel trick with JavaScript on page load And the following meta tags: Also this: I am completely confused. PS: Oh, I forgot a really important thing: the web page itself does not overflow the browser window. It probably is the

Client Checking file size using HTML5?

I’m trying to ride the HTML5 wave but I’m facing a small issue. Before HTML5 we were checking the file size with flash but now the trend is to avoid using flash in web apps. Is there any way to check the file size in the client side using HTML5? Answer This works. Place it inside an event listener for

Can setTimeout ever return 0 as the id?

I am writing a check to see if a timeout is active. I was thinking of doing this: I was wondering if it would ever be possible that a will be 0. In that case I would use a !== null Answer First: 0 isn’t the same as null, (0 == null) would be false in every case’; if you

HTML input fields does not get focus when clicked

I have a problem and I can’t figure out what exactly is causing this behavior. I cannot access my input fields and textareas on my HTML form. Unfortunately, the JS, HTML and CSS are very large, so I can’t really post it all here. Can anybody tell me what to look for when debugging this strange behavior? UPDATE If I

How to change the text of a label?

I have a radiobutton list and on click on the radio button item I have to change the text of its label. But for some reason it’s not working. Code is below: Answer ASP.Net automatically generates unique client IDs for server-side controls. Change it to In ASP.Net 4.0, you could also set the ClientIDMode property to Static instead.

Advertisement