Jump to content

Search the Community

Showing results for tags 'microdata'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. This is my first post and I'm not very good with Java. I'm trying to automatically create the following schema meta tag for my website: <meta itemprop="url" content="URLofthispage" /> The best I came up (pieced together from the internet) with is: <script>var addLink = function(url){ var link = document.createElement('meta'); link.setAttribute('itemprop', 'url'); link.content = window.location.href; document.getElementsByID('placehere')[0].appendChild(link); </script> And then <p id="placehere"><p> to place the meta tag in the correct location in my code. I have tried the same format also for <link itemprop="url" href="URLofthispage" /> which can also be used for the url tag. Any suggestions would be greatly appreciated.
×
×
  • Create New...