Jump to content

onClick doesn't work


ajaxiskey

Recommended Posts

test/test works fine... are you using firefox?

 

also the code runs fine if it is the only code on the page... but when it is included with my entire code, when i click the image the onClick doesn't trigger...

 

        <div id="ERRORBOX" style="position: absolute; left: 50%; top: 50%; width: 200px; height: 150px; margin-left: -100px; margin-top: -75px; background-image: url('images/errorbox.png'); visibility: hidden;">
      <div style="margin-top: 2px; margin-left: 2px; width: 196px; background-color: #121212; text-align: center; color: #FF0000; padding-top: 1px;">ERROR</div>
      <div id="ERRORBOX2" style="position: relative; top: 30%; color: #FFFFFF; text-align: center;"></div>
      <img style="display: block; position: absolute; bottom: 6px; right: 6px;" src="images/x.png" onClick="document.getElementById('ERRORBOX').style.visibility='hidden';">
    </div>

Link to comment
https://forums.phpfreaks.com/topic/210368-onclick-doesnt-work/#findComment-1097764
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.