Web Analytics Made Easy -
StatCounter insert meta tag in javascript - how? - CodingForum

Announcement

Collapse
No announcement yet.

insert meta tag in javascript - how?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • insert meta tag in javascript - how?

    Hi,
    I need to insert the following tag <META HTTP-EQUIV="imagetoolbar" CONTENT="no"> into this script:

    function popup(FILE, FEATURES) {
    CONTENT = "<HTML><HEAD><TITLE>GEKO GEAR</TITLE></HEAD>" + "<BODY><IMG SRC='" + FILE + "' BORDER=0>" + "</CENTER>"+ "<center><a href='javascript:self.close()' target='_self'>Close</a></center></BODY></HTML>";
    pop = window.open("","",FEATURES);
    pop.document.open();
    pop.focus();
    pop.document.write(CONTENT);
    pop.document.close();
    pop.document.bgColor="#FFFFFF"

    }

    I use this script to open a larger image when a thumbnail is clicked. The tag is used to disable the image toolbar that appears in the top left corner of images when the mouse remains over them - I want no image toolbar to appear in the new window where the large image is. I tried all I could think of, but could not get this to work. All help is greatly appriciated...

  • #2
    function popup(FILE, FEATURES) {
    CONTENT = "<HTML><HEAD><META HTTP-EQUIV='imagetoolbar' CONTENT='no'> <TITLE>GEKO GEAR</TITLE></HEAD>" + "<BODY><IMG SRC='" + FILE + "' BORDER=0>" + "</CENTER>"+ "<center><a href='javascript:self.close()' target='_self'>Close</a></center></BODY></HTML>";
    pop = window.open("","",FEATURES);
    pop.document.open();
    pop.focus();
    pop.document.write(CONTENT);
    pop.document.close();
    pop.document.bgColor="#FFFFFF"

    }

    Comment


    • #3
      Hi,
      I actually did try putting it there, but for some unknown reason it gave me an error - now I did it again and it works!!! Go figure....

      Thx Garadon

      Comment

      Working...
      X