Jul 8, 2001 #1 Kinl Programmer Mar 19, 2001 168 US I get this error when I try to use the MSGBOX function in VBScript. What might be the problem ? Microsoft VBScript runtime error '800a0046' Permission denied: 'msgbox' /test/test.asp, line 9 Thanx, Donn
I get this error when I try to use the MSGBOX function in VBScript. What might be the problem ? Microsoft VBScript runtime error '800a0046' Permission denied: 'msgbox' /test/test.asp, line 9 Thanx, Donn
Jul 9, 2001 #2 Boomerang Programmer Mar 30, 2001 766 NL Hi Donn, Your asp code executes on the server, so it's not possible to display a messagebox on the client site. but you can use some javascript like: You can use the onload attribute in the body tag from the page where the submitbottun submits to. <BODY onload="{window.alert('YourText');}" > An other way, if you use a link to go to another page, you can use the onclick attribute. <a onclick="{window.alert('YourText');}" href="somepage.asp">pagename</a> Hope this will help, Erik Upvote 0 Downvote
Hi Donn, Your asp code executes on the server, so it's not possible to display a messagebox on the client site. but you can use some javascript like: You can use the onload attribute in the body tag from the page where the submitbottun submits to. <BODY onload="{window.alert('YourText');}" > An other way, if you use a link to go to another page, you can use the onclick attribute. <a onclick="{window.alert('YourText');}" href="somepage.asp">pagename</a> Hope this will help, Erik
Jul 9, 2001 Thread starter #3 Kinl Programmer Mar 19, 2001 168 US Thanx~!! I seemed to have used an alternate route to accomplish this. But thank you very much. Donn Upvote 0 Downvote