

Specialist
2014-05-13
04:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alert Box in JScript
i want to get a pop up on a click using a JScript Macro
i used
Function myFunction() {
alert("i am an alert!")
}
but this doesnt work, it says "object expected" near alert
and i observed that it doesnt take alert as a key word. Can any please help me on this. if not htis method some other but only i JScript
1,426 Views
2 Replies

Not applicable
2014-09-30
05:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The below should work.
Function myFunction()
{
var myMsgBox=new ActiveXObject("wscript.shell");
myMsgBox.Popup ("i am an alert!");
}
751 Views

Anonymous
Not applicable
2015-02-24
09:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
don't work
751 Views
