Confirm box javascript

  • Ortin
  • Graduate
  • Graduate
  • User avatar
  • Posts: 121

Post 3+ Months Ago

Hi all,

Currently creating a site with some delete functions, in which I have a confirmation box appear when clicked.

Just a couple questions:

Is there anyway to format the confirm box/create a mimic?

And ideally there wouldn't be a pop-up box at all, and a confirmation box would appear on the page, any ideas how to do this?

Thanks in advance,
John
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Posts: 481

Post 3+ Months Ago

Something like this?
Code: [ Select ]
<div id="confirm" style="display:none">
Are you sure?
<a href="...">Yes</a>
<a href="...">No</a>
</div>

<a href="#" onclick="document.getElementById('confirm').style.display = '';">Show confirmation box</a>
  1. <div id="confirm" style="display:none">
  2. Are you sure?
  3. <a href="...">Yes</a>
  4. <a href="...">No</a>
  5. </div>
  6. <a href="#" onclick="document.getElementById('confirm').style.display = '';">Show confirmation box</a>
  • Ortin
  • Graduate
  • Graduate
  • User avatar
  • Posts: 121

Post 3+ Months Ago

Thanks casa

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 40 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.