Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. definition of print() function in javscript

definition of print() function in javscript

Scheduled Pinned Locked Moved ASP.NET
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yogita charhate
    wrote on last edited by
    #1

    hi, if any one knows definition of print() function in javscript please send the code. thank you.

    yog hui gfgh kgdgrt njjn hjgkn

    I 1 Reply Last reply
    0
    • Y yogita charhate

      hi, if any one knows definition of print() function in javscript please send the code. thank you.

      yog hui gfgh kgdgrt njjn hjgkn

      I Offline
      I Offline
      indianet
      wrote on last edited by
      #2

      Button1.Attributes.Add("onclick", "javascript:window.print();") If this is what you are asking?

      G 1 Reply Last reply
      0
      • I indianet

        Button1.Attributes.Add("onclick", "javascript:window.print();") If this is what you are asking?

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        (Not aimed at you personally. :)) I can't understand why everyone keeps adding that protocol in front of the javascript code. As the code isn't in an url it's not even used as a protocol, but is instead wrongly interpreted as a label. Button1.Attributes.Add("onclick", "window.print();") If you want a label in the code, why not use something more inspired? ;) Button1.Attributes.Add("onclick", "mailto:window.print();") Button1.Attributes.Add("onclick", "lpt1:window.print();") Button1.Attributes.Add("onclick", "dialog:window.print();") Button1.Attributes.Add("onclick", "code:window.print();") Button1.Attributes.Add("onclick", "todo:window.print();")

        --- b { font-weight: normal; }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups