. beep

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 000baaa000
    New Member
    • Sep 2008
    • 5

    . beep

    i know this beep issue has been discussed around bytes.com before,
    but i have not seen a simple technique, yet.


    the Problem

    How to generate a beep
    say every time an image is loaded

    ASCII encoding is part of every www page ?
    ASCII 7 is beep

    so
    why none of the following tecniques works:

    1- directly embeding ASCII 7 in a web page ( control-G )
    2- image:after {content: "\7" }
    3-<img onload="documen t.write( '\7' ) " ....

    ???

    -

    000baaa000
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    That's just crazy talk. 'beep' is operating system generated. The browser does not generate commands to the OS except through installed apps, ActiveX, XUL and the like and only if they're installed. html and css are markup languages for display and content, not programming languages, so telling it to display that control code causes it to display it, period.

    Your third option is javascript, which is a programming language. But that's a question for hte javascript board.

    Comment

    Working...