I have a post on a multi-search-bar that just recently got marked as on-hold for broken code. I looked through it and it's considered broken code because I can't link to websites.

I have two questions:

  1. Can you allow links in snippets?
  2. Can my post be reopened?

No, that is not the reason for the closure. Your question was closed because the code doesn't work.

function google() {
  var good = document.getElementById("theStuff");
  window.location.href = 'http://www.google.com/search?q=' + good;

Concatenating a string with a DOM element makes no sense.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .