javascript -- Industry guru Dave Taylor answers questions about a wide variety of technical topics, including HTML, online advertising, Cascading Style Sheets, Web design, Unix, Linux, search engine optimization, Mac OS X, shell script programming and Microsoft Windows.

"javascript" Help and Information



How can I create a Google and Google Images search box?

I've seen your blog entries about how to create a search box for Google on my site, and how to create a search box for Google Images on my site, but what I'd love is a single, consolidated search box for both. Is that possible?...

Continue reading about How can I create a Google and Google Images search box?

How can I have my images show up in Google Image Search?

What can I do to improve the placement of my photographs and graphics in Google Image Search?...

Continue reading about How can I have my images show up in Google Image Search?

Can I display an "image not found" image in HTML?

I've been writing some scripts to display large directories of images in HTML in an automated fashion and not infrequently the static HTML generated ends up not matching the underlying images on the server. I could generate the pages on-demand, but it's too processor intensive. Instead, I'd like to know if there's a way I can automatically display an "image no longer available" graphic instead of just a broken link?...

Continue reading about Can I display an "image not found" image in HTML?

Modifying search strings on Google site search?

I saw your answer regarding how to modify a Google search box to only look through a specified subdirectory on my site (see Search only subdirectory in Google) and it's interesting, but where's the actual code? I need something I can cut and paste, please!...

Continue reading about Modifying search strings on Google site search?

How do I create a custom bookmark that grabs the current URL?

I've seen a number of different sites where you can drag a link onto your bookmark bar in a browser and then have that bookmark act as a tiny little program that grabs and sends specific information. I want one like that for a bookmark program of my own, where I have a CGI backend and want to be able to visit a page, click on my link, and have the URL of that page...

Continue reading about How do I create a custom bookmark that grabs the current URL?

How do I detect an iPhone user coming to my site?

Amazon.com's jumped on the wagon, and Meebo has too: they automatically give you a different version of their site if you're browsing from an Apple iPhone. I want to do that too. How the heck do I detect that a visitor has an iPhone?...

Continue reading about How do I detect an iPhone user coming to my site?

How do you get your Submit button to disable on click?

I notice that about two weeks ago your site changed subtly, Dave. Before, I'd click on "POST" to submit a comment and then wait and wait while it processed. Now it's still as slow (sorry!) but as soon as I click on that POST button it grays out so I can't click on it again. Cool. How do you do that?...

Continue reading about How do you get your Submit button to disable on click?

How can I make the text adjacent to my checkbox clickable?

I've noticed that on some of the more slick Web 2.0-style Web sites, you can click on the text description adjacent to a checkbox and have it act as if you'd clicked on the checkbox itself, just as you can with regular Windows dialog box elements. How the heck do they do that?...

Continue reading about How can I make the text adjacent to my checkbox clickable?

What is wikispam?

I just attended a "barcamp" event in Denver [see BarCamp Denver] and was a bit baffled by one thing that they started talking about: what the heck is 'wikispam'?...

Continue reading about What is wikispam?

How do I use JavaScript to break out of frames?

I'm really upset. I was just visiting a competitors Web site and found out that they had links to my FAQ pages, but when you clicked on the links, their "frame" neatly wrapped my content, which made it seem like it was their content, not mine. That stinks, and I want to know if there's a way that I can kill or prevent this from happening to my Web pages?...

Continue reading about How do I use JavaScript to break out of frames?


Advanced Search :: Ask Dave Taylor!


Match case   Search using regular expressions
Search: Entries Comments Both
Sort By:
Sort Order:
Search entries from:
Maximum results shown:


Need Help? Ask Dave Taylor!
Search