i




 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
message box in javascript
09-08-2011, 11:35 AM
Post: #1
message box in javascript
this code gets the messagebox in javascript.if you click on ok it will goes to
dotnetobject page else stick in current page...

Code:
<!--
function confirmation() {
    var answer = confirm("Leave this site.com?")
    if (answer){
        alert("Bye bye!")
        window.location = "http://www.dotnetobject.com/";
    }
    else{
        alert("Thanks for sticking around!")
    }
}
//-->
</script>




“A mind stretched by a new idea can never go back to its original dimension.”

Quote
09-08-2011, 12:06 PM
Post: #2
RE: message box in javascript
yup.. Its OK


Thanks and Regards
Raju
Quote
09-08-2011, 04:14 PM
Post: #3
RE: message box in javascript
thanks for sharing... keep posting

[Image: 2604595733.png]
Quote




User(s) browsing this thread: 1 Guest(s)