How to prevent crawling the whole website url within javascript/Dynamically load js

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teressa
    New Member
    • Aug 2008
    • 6

    How to prevent crawling the whole website url within javascript/Dynamically load js

    Hi Everyone,

    I was given a task to fix our printer friendly pages:

    Best practice recommendation was to dynamically load a JavaScript page.

    I have an asp page which is a printer-friendly page and this is a common page for all the subsites.To prevent search engine crawling of the full url of this page,i was asked to dynamically load a js file.

    What do i need to do inorder to load an external js file, and what needs to be included in this.

    For example: my page is http://expedia.com/print.asp?id=10

    where do i need to include the js file and what should be included in this js file,how to get the full functionality of print.asp to this js file.

    Any Help is greatly appreciated.
    Tere
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    it needs to be a bit more specific. you could either create the entire page with javascript or just some parts to avoid double-content or whatever.

    the js-file should be included in the page's head.

    kind regards

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      The recommended practice for this is to use print stylesheets. A search for "print stylesheets" should return some useful links.

      Basically, you use one page, but use different styles for the different media, i.e. screen and print.

      Comment

      Working...